Last modified: December 2023

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/contour_fit.html
AHELP for CIAO 4.16 Sherpa

contour_fit

Context: visualization

Synopsis

Contour the fit to a data set.

Syntax

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

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

Description

Overplot the model - including any PSF - on the data. The preferences are the same as `contour_data` and `contour_model` .


Examples

Example 1

Plot the fit for the default data set:

>>> contour_fit()

Example 2

Overplot the fit to data set 's2' on that of the default data set:

>>> contour_fit()
>>> contour_fit('s2', overcontour=True)

PARAMETERS

The parameters for this function are:

Parameter Definition
id The data set that provides the data and 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_fit` . 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

psfs
contour_kernel, contour_psf
visualization
contour, contour_data, contour_fit_resid, contour_model, contour_ratio, contour_resid, contour_source