get_fit_contour
- sherpa.ui.get_fit_contour(id: IdType | None = None, recalc: bool = True, copy: bool = True) sherpa.plot.FitContour
Return the data used by contour_fit.
Changed in version 4.19.0: The contour object is now copied by default. To get the previous behaviour set the
copyattribute toFalse.- Parameters:
- id
int,str,orNone,optional The data set. If not given then the default identifier is used, as returned by
get_default_id.- recalcbool,
optional If
Falsethen the results from the last call tocontour_fit(orget_fit_contour) are returned, otherwise the data is re-generated.- copybool,
optional Is the contour object copied before being returned? If so then the contour attributes will not be changed by multiple calls to this routine.
- id
- Returns:
- fit_data
asherpa.plot.FitContourinstance An object representing the data used to create the plot by
contour_fit. It contains the data fromget_data_contourandget_model_contourin thedatacontourandmodelcontourattributes.
- fit_data
- Raises:
sherpa.utils.err.DataErrIf the data set is not 2D.
sherpa.utils.err.IdentifierErrIf the data set does not exist or a source expression has not been set.
See also
get_data_imageReturn the data used by image_data.
get_model_imageReturn the data used by image_model.
contour_dataContour the values of an image data set.
contour_modelContour the values of the model, including any PSF.
image_dataDisplay a data set in the image viewer.
image_modelDisplay the model for a data set in the image viewer.
Examples
Return the contour data for the default data set:
>>> finfo = get_fit_contour()