About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2008

URL: http://cxc.harvard.edu/sherpa4.1/contour_model.sl.html
AHELP for Sherpa 4.1

contour_model

Context: sl.sherpa

Synopsis

Open a contour plot of a data set model in ChIPS

Syntax

contour_model( [ id, [replot=0,overcontour=0]] );

Description

The contour_model function opens in ChIPS a contour plot of a data set model by data set ID. If no data set ID is specified, the model assigned to the default data set will be used. To plot contours of a data set, fit, fit residuals, data-to-model ratio, or psf, use the contour function.

Arguments:

  • id - Sherpa data set ID; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
  • replot - Send cached data arrays to ChIPS; default=0
  • overcontour - Contour data without clearing previous plot; default=0

Example 1

sherpa> contour_model();

The contour_model function can be called with no arguments, in which case a contour plot of the model associated with the default data set loaded in the Sherpa session is visualized, with the default settings.

Example 2

sherpa> contour_model(3, overcontour=0);

Here, contour_model function clears the previous plot and sends to ChIPS a contour plot of the model assigned to data set 3.

Example 3

sherpa> contour_model(replot=1, overcontour=1);

This command sends to ChIPS a cached contour plot of the model assigned to data set 1, without clearing the previous plot.

Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

Last modified: December 2008



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.