get_model_contour

sherpa.astro.ui.get_model_contour(id=None)

Return the data used by contour_model.

Parameters:

id (int or str, optional) – The data set. If not given then the default identifier is used, as returned by get_default_id.

Returns:

resid_data – The y attribute contains the model values and the x0 and x1 arrays the corresponsing coordinate values, as one-dimensional arrays.

Return type:

a sherpa.plot.ModelContour instance

Raises:

See also

get_model_image()
Return the data used by image_model.
contour_model()
Contour the values of the model, including any PSF.
image_model()
Display the model for a data set in the image viewer.

Examples

Return the model pixel values for the default data set:

>>> minfo = get_model_contour()