Causes the specified 2-D data to be displayed, with a contour plot, via ChIPS.
sherpa> CPLOT [<num_plots>] <arg_1> [# [ID]] [<arg_2> [# [ID]] ...] <num_plots> specifies the number of plotting windows to open within the ChIPS pane (default 1); that number sets the number of subsequent arguments. For each subsequent argument, # specifies the number of the dataset (default dataset number is 1), and the ID modifier is used for displaying background datasets, and then if and only if the Sherpa state object variable multiback is set to 1, i.e., if more than one background dataset is to be associated with a single source dataset. The ID modifier may be any unreserved string (e.g., A, foo, etc.), i.e., a string that is not a parsable command.
The argument <arg_n> may be any of the following:
CPLOT Command Arguments
If there is no open plotting window when an CPLOT command is given, one will be created automatically.
If one issues the CPLOT following filtering, note the following: arbitrarily filtered data cannot be passed from Sherpa to ChIPS for display; the data grid must be rectangular. Therefore, contouring proceeds in three steps: (1) the smallest possible rectangle is drawn around the noticed data; (2) within this rectangle, the <data to image> is tranformed to <data to image> * filter; and (3) these transformed data are sent off to ChIPS for display.
The appearance of plots generated with this command can be changed by modifying the fields of certain state objects. See the ahelp for Sherpa or for sherpa.plot for more information.
NOTE: all ChIPS commands may be used from within Sherpa to modify plot characteristics. In order to view these changes, the REDRAW command must be issued.
The Display chapter of the Sherpa Manual has more information regarding data display capabilities, including modifying various plot characteristics.
Display 2-D data with a contour plot:
sherpa> DATA 3 example2Da.dat ASCII 1 2 3 sherpa> CPLOT DATA 3
The CPLOT command plots dataset number 3 as a contour plot. Dataset number 3 must be a 2-D dataset.
Display 2-D datasets with contour plots in multiple windows:
sherpa> DATA 1 example2Db.dat ASCII 1 2 3 sherpa> CPLOT 2 DATA 1 DATA 3
This command displays a contour plot of dataset number 1 (example2Db.dat) in the first window, and a contour plot of dataset number 3 (example2Da.dat) in the second window.
The Chandra X-Ray
Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA. Email: email@example.com
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.