contour_model
- sherpa.astro.ui.contour_model(id: IdType | None = None, replot=False, overcontour=False, **kwargs) None
Create a contour plot of the model.
Displays a contour plot of the values of the model, evaluated on the data, including any PSF kernel convolution (if set).
- Parameters:
id (int, str, or None, optional) – The data set that provides the model. If not given then the default identifier is used, as returned by
get_default_id.replot (bool, optional) – Set to
Trueto use the values calculated by the last call tocontour_model. The default isFalse.overcontour (bool, optional) – If
Truethen add the data to an existing plot, otherwise create a new contour plot. The default isFalse.
See also
get_model_contourReturn the data used by contour_model.
get_model_contour_prefsReturn the preferences for contour_model.
get_default_idReturn the default data set identifier.
contourCreate one or more plot types.
contour_sourceCreate a contour plot of the unconvolved spatial model.
sherpa.astro.ui.set_coordSet the coordinate system to use for image analysis.
set_psfAdd a PSF model to a data set.
Examples
Plot the model from the default data set:
>>> contour_model()
Compare the model without and with the PSF component, for the “img” data set:
>>> contour_source("img") >>> contour_model("img", overcontour=True)