sherpa.astro.ui.contour_source(id=None, **kwargs)

Create a contour plot of the unconvolved spatial model.

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.

  • id (int or str, 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 True to use the values calculated by the last call to contour_source. The default is False.
  • overcontour (bool, optional) – If True then add the data to an exsiting plot, otherwise create a new contour plot. The default is False.

See also

Return the data used by contour_source.
Return the default data set identifier.
Create one or more plot types.
Create a contour plot of the model.
Set the coordinate system to use for image analysis.
Add a PSF model to a data set.


Plot the model from the default data set:

>>> contour_source()

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

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