get_data_contour

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

Return the data used by contour_data.

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 residual values and the x0 and x1 arrays the corresponsing coordinate values, as one-dimensional arrays.

Return type

a sherpa.plot.DataContour instance

Raises

See also

get_data_image()

Return the data used by image_data.

contour_data()

Contour the values of an image data set.

image_data()

Display a data set in the image viewer.

Examples

Return the data for the default data set:

>>> dinfo = get_data_contour()