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

Contour the fit to a data set.

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

  • id (int or str, optional) – 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 (bool, optional) – Set to True to use the values calculated by the last call to contour_fit. The default is False.

  • overcontour (bool, optional) – If True then add the data to an existing plot, otherwise create a new contour plot. The default is False.

See also


Return the data used by contour_fit.


Return the default data set identifier.


Create one or more plot types.


Set the coordinate system to use for image analysis.


Plot the fit for the default data set:

>>> contour_fit()

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

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