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_data.py.html
AHELP for Sherpa 4.1

contour_data

Context: py.sherpa

Synopsis

Open a contour plot of a data set in ChIPS

Syntax

contour_data( [ id, [replot=False,overcontour=False]] )

Description

The contour_data() function opens in ChIPS a contour plot of a data set by data set ID. If no data set ID is specified, the default data set will be used. To plot contours of a model, 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=False
  • overcontour - Contour data without clearing previous plot; default=False

Example 1

sherpa> contour_data()

The contour_data function can be called with no arguments, in which case a contour plot of the data is made for the first data set loaded in the Sherpa session, with the default settings.

Example 2

sherpa> contour_data(3, overcontour=False)

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

Example 3

sherpa> contour_data(replot=True, overcontour=True)

This command sends to ChIPS a cached contour plot of 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.