get_fit_contour

sherpa.astro.ui.get_fit_contour(id=None, recalc=True)

Return the data used by contour_fit.

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

  • recalc (bool, optional) – If False then the results from the last call to contour_fit (or get_fit_contour) are returned, otherwise the data is re-generated.

Returns

fit_data – An object representing the data used to create the plot by contour_fit. It contains the data from get_data_contour and get_model_contour in the datacontour and modelcontour attributes.

Return type

a sherpa.plot.FitContour instance

Raises

See also

get_data_image

Return the data used by image_data.

get_model_image

Return the data used by image_model.

contour_data

Contour the values of an image data set.

contour_model

Contour the values of the model, including any PSF.

image_data

Display a data set in the image viewer.

image_model

Display the model for a data set in the image viewer.

Examples

Return the contour data for the default data set:

>>> finfo = get_fit_contour()