get_ratio_contour
- sherpa.astro.ui.get_ratio_contour(id: IdType | None = None, recalc: bool = True)
Return the data used by contour_ratio.
- 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_ratio(orget_ratio_contour) are returned, otherwise the data is re-generated.
- id
- Returns:
- ratio_data
asherpa.plot.RatioContourinstance The
yattribute contains the ratio values and thex0andx1arrays contain the corresponding coordinate values, as one-dimensional arrays.
- ratio_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_ratio_imageReturn the data used by image_ratio.
get_resid_contourReturn the data used by contour_resid.
contour_ratioContour the ratio of data to model.
image_ratioDisplay the ratio (data/model) for a data set in the image viewer.
Examples
Return the ratio data for the default data set:
>>> rinfo = get_ratio_contour()