|
|||
NRAO Home > CASA > CASA Cookbook and User Reference Manual |
|
8.3.9.1 ASAP plotter
The ASAP plotter uses the same Python matplotlib library as in CASA (for x-y plots). It is accessed via the:
sd.plotter.plot(scans) # the workhorse function
sd.plotter.set<TAB>
sd.plotter.set_abcissa sd.plotter.set_layout sd.plotter.set_panelling
sd.plotter.set_colors sd.plotter.set_legend sd.plotter.set_range
sd.plotter.set_colours sd.plotter.set_linestyles sd.plotter.set_selection
sd.plotter.set_data sd.plotter.set_mask sd.plotter.set_stacking
sd.plotter.set_font sd.plotter.set_mode sd.plotter.set_title
Spectra can be plotted at any time when refresh = True (default) is selected, and it will attempt to do the correct layout depending on whether it is a set of scans or a single scan. You can switch off verbose plotting by refresh = False in tool parameters for faster plotting in scripts:
# this should be done at first.
sd.plotter.set_mode(stacking=’time’,panelling=’if’,refresh=False)
sd.plotter.set_range(ystart=-1.0,yend=5.0,refresh=False)
sd.plotter.plot() # actual plotting
The details of the plotter display (matplotlib) are detailed in the earlier section.
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