NRAO Home > CASA > CASA Cookbook and User Reference Manual
3.3.2.2 The selectplot Parameters

These parameters work in concert with the native matplotlib functionality to enable flexible representations of data displays.

Setting selectplot=True will open up a set of plotting control sub-parameters:

selectplot       =       True   #  Select additional plotting options (e.g, fontsize, title,etc)  
     markersize  =        5.0   #  Size of plotted marks  
     linewidth   =        1.0   #  Width of plotted lines  
     skipnrows   =          1   #  Plot every nth point  
     newplot     =      False   #  Replace the last plot or not when overplotting  
     clearpanel  =     ’Auto’   #  Specify if old plots are cleared or not  
     title       =         ’’   #  Plot title (above plot)  
     xlabels     =         ’’   #  Label for x-axis  
     ylabels     =         ’’   #  Label for y-axis  
     fontsize    =       10.0   #  Font size for labels  
     windowsize  =        5.0   #  Window size: not yet implemented

Inside the Toolkit:
For even more functionality, you can access the pl tool directly using Pylab functions that allow one to annotate, alter, or add to any plot displayed in the matplotlib plotter (e.g. plotxy).

The markersize parameter will change the size of the plot symbols. Increasing it will help legibility when doing screen shots. Decreasing it can help in congested plots. The linewidth parameter will do similar things to the lines.

The skipnrows parameter, if set to an integer n greater than 1, will allow only every nth point to be plotted. It does this, as the name suggests, by skipping over whole rows of the MS, so beware (channels are all within the same row for a given spw). Be careful flagging on data where you have skipped points! Note that you can also reduce the number of points plotted via averaging (§ 3.3.2.9) or channel striding in the spw specification (§ 2.3.3).

The newplot toggle lets you choose whether or not the last layer plotted is replaced when overplot=True, or whether a new layer is added.

The clearpanel parameter turns on/off the clearing of plot panels that lie under the current panel layer being plotted. The options are: ’none’ (clear nothing), ’auto’ (automatically clear the plotting area), ’current’ (clear the current plot area only), and ’all’ (clear the whole plot panel).

The title, xlabels, and ylabels parameters can be used to change the plot title and axes labels.

The fontsize parameter is useful in order to enlarge the label fonts so as to be visible when making plots for screen capture, or just to improve legibility. Shrinking can help if you have lots of panels on the plot also.

The windowsize parameter is supposed to allow adjustments on the window size. ALERT: This currently does nothing, unless you set it below 1.0, in which case it will produce an error.


More information about CASA may be found at the CASA web page

Copyright © 2010 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search