NRAO Home > CASA > CASA Toolkit Reference Manual
tableplot.iterplotstart - Function

3.2.2 Initialize plotting with an iteration axis


Description

Begin a series of plots using subtables constructed via an iteration axes. In addition to plotdata parameters, set a list of iteration axes (Table column names) and use iterplotnext() to step through. Only forward step through is allowed.

Arguments





Inputs

poption

Record of plot options default is nxpanels=1, nypanels=1, windowsize=6, aspectratio=0.8, fontsize=1.0

allowed:

record

Default:

1 1 6 0.8 1.0

labels

List of strings : Title,Xlabel,Ylabel

allowed:

stringArray

Default:

datastr

List of TaQL strings : X,Y

allowed:

stringArray

Default:

iteraxes

List of strings : Iteration axes

allowed:

stringArray

Default:

Returns
bool

Example

 
 
 # Open a list of MS tables to plot from,  
 # and initialize a plot of Amplitude vs UV distance for  
 # channel 1 and stokes 1, iterating over Antenna1  
 tp.open(tabnames=[’3c273.ms’,’3c48.ms’])  
 pop = { ’nrows’:3, ’ncols’:1,’panel’:1, ’plotcolour’:1,  
         ’aspectratio’:1.6}  
 iteraxes = [’ANTENNA1’]  
 labels = [’Amplitude vs UVdist’,’uvdist’,’amplitude’]  
 xystr = [’SQRT(SUMSQUARE(UVW[1:2]))’,’AMPLITUDE(DATA[1,1:2])’]  
 tp.iterplotstart(poption=pop, labels=labels, datastr=xystr,  
                  iteraxes=iteraxes)  
 tp.iterplotnext()  
 

Example

 
To iterate over baseline and plot Amplitude vs time, for stokes 1, channel 1.  
 
 pop = { ’nrows’:4, ’ncols’:1 }  
 labels = [’Amplitude vs UVdist (iterating over Baseline)’,  
            ’uvdist’,’amplitude’]  
 xystr = [’SQRT(SUMSQUARE(UVW[1:2]))’,’AMPLITUDE(DATA[1,1])’]  
 iteraxes = [’ANTENNA1’,’ANTENNA2’]  
 tp.iterplotstart(poption=plotopts,labels=labels,  
                  datastr=xystr,iteraxes=iteraxes)  
 
 

__________________________________________________________________


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

Copyright © 2016 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