get_resid_contour¶
-
sherpa.ui.get_resid_contour(id=None)¶ Return the data used by contour_resid.
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
yattribute contains the residual values and thex0andx1arrays the corresponsing coordinate values, as one-dimensional arrays.Return type: a sherpa.plot.ResidContour instance
Raises: sherpa.utils.err.DataErr– If the data set is not 2D.sherpa.utils.err.IdentifierErr– If the data set does not exist or a source expression has not been set.
See also
get_ratio_contour()- Return the data used by contour_ratio.
get_resid_image()- Return the data used by image_resid.
contour_resid()- Contour the residuals of the fit.
image_resid()- Display the residuals (data - model) for a data set in the image viewer.
Examples
Return the residual data for the default data set:
>>> rinfo = get_resid_contour()