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

contour_ratio

Context: py.sherpa

Synopsis

Open a contour plot of a data-to-model ratio in ChIPS

Syntax

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

Description

The contour_ratio function opens in ChIPS a contour plot of the ratio of a data set, i.e. the data set divided by data set model, by data set ID. If no data set ID is specified, the default data set will be used. To plot contours of a data set, model, fit, fit residuals, 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_ratio()

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

Example 2

sherpa> contour_ratio(3, overcontour=False)

Here, the contour_ratio function clears the previous plot and sends a contour of the data-to-model ratio for data set 3 to ChIPS.

Example 3

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

This command sends a cached contour plot of the data-to-model ratio for data set 1 to ChIPS, 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.