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

contour_resid

Context: py.sherpa

Synopsis

Open a contour plot of data-minus-model residuals in ChIPS

Syntax

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

Description

The contour_resid function opens in ChIPS a contour plot of fit residuals (dataset minus dataset model) by data set ID. If no data set ID is specified, the residuals corresponding to the default data set will be used. To plot contours of a data set, model, fit, 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_resid()

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

Example 2

sherpa> contour_resid(3, overcontour=False)

Here, the contour_resid function clears the previous plot and sends to ChIPS a contour plot of the fit residuals associated with data set 3.

Example 3

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

This command sends to ChIPS a cached contour plot of the fit residuals of the default dataset, without clearing the previous plot.

Bugs

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

See Also

py.sherpa
add_user_pars, calc_chisqr, calc_energy_flux, calc_model_sum, calc_photon_flux, calc_source_sum, calc_stat, clean, contour, contour_data, contour_fit, contour_fit_resid, contour_model, contour_psf, contour_ratio, contour_source, create_model_component, delete_bkg_model, delete_model, delete_model_component, delete_psf, eqwidth, fit, get_arf_plot, get_bkg_plot, get_chisqr_plot, get_delchi_plot, get_model, get_model_autoassign_func, get_model_plot, get_num_par, get_order_plot, get_par, get_pileup_model, get_ratio, get_resid, get_source, get_split_plot, get_stat, image_close, image_data, image_deleteframes, image_fit, image_getregion, image_model, image_open, image_ratio, image_resid, image_setregion, image_source, image_xpaget, image_xpaset, integrate, link, list_model_ids, load_image, load_table_model, load_user_model, pack_image, plot, plot_arf, plot_bkg, plot_chisqr, plot_data, plot_delchi, plot_fit, plot_model, plot_order, plot_ratio, plot_resid, plot_source, reset, set_bkg_model, set_model, set_model_autoassign_func, set_pileup_model, set_source, unpack_image
py.sherpa_contrib
get_data_prof, get_data_prof_prefs, get_delchi_prof, get_delchi_prof_prefs, get_fit_prof, get_model_prof, get_model_prof_prefs, get_resid_prof, get_resid_prof_prefs, get_source_prof, get_source_prof_prefs, plot_chart_spectrum, plot_energy_flux, plot_instmap_weights, plot_photon_flux, prof_data, prof_delchi, prof_fit, prof_fit_delchi, prof_fit_resid, prof_model, prof_resid, prof_source
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.