Last modified: December 2020

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/contour_source.html
AHELP for CIAO 4.13 Sherpa v1

contour_source

Context: visualization

Synopsis

Create a contour plot of the unconvolved spatial model.

Syntax

contour_source(id=None, replot=False, overcontour=False, **kwargs)

id - int or str, optional
replot - bool, optional
overcontour - bool, optional

Description

Displays a contour plot of the values of the model, evaluated on the data, without any PSF kernel convolution applied. The preferences are the same as `contour_model` .


Examples

Example 1

Plot the model from the default data set:

>>> contour_source()

Example 2

Compare the model without and with the PSF component, for the "img" data set:

>>> contour_model("img")
>>> contour_source("img", overcontour=True)

PARAMETERS

The parameters for this function are:

Parameter Definition
id The data set that provides the model. If not given then the default identifier is used, as returned by `get_default_id` .
replot Set to True to use the values calculated by the last call to `contour_source` . The default is False .
overcontour If True then add the data to an existing plot, otherwise create a new contour plot. The default is False .

Bugs

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

See Also

modeling
get_source_contour
psfs
contour_kernel, contour_psf
visualization
contour, contour_data, contour_fit, contour_fit_resid, contour_model, contour_ratio, contour_resid