contour_fit_resid
- sherpa.astro.ui.contour_fit_resid(id: IdType | None = None, replot=False, overcontour=False, **kwargs) None
Contour the fit and the residuals to a data set.
Overplot the model - including any PSF - on the data. In a separate plot contour the residuals. The preferences are the same as
contour_data
andcontour_model
.- Parameters:
id (int, str, or None, 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 tocontour_fit_resid
. The default isFalse
.overcontour (bool, optional) – If
True
then add the data to an existing plot, otherwise create a new contour plot. The default isFalse
.
See also
get_fit_contour
Return the data used by contour_fit.
get_default_id
Return the default data set identifier.
contour
Create one or more plot types.
contour_fit
Contour the fit to a data set.
contour_resid
Contour the residuals of the fit.
sherpa.astro.ui.set_coord
Set the coordinate system to use for image analysis.
Examples
Plot the fit and residuals for the default data set:
>>> contour_fit_resid()