contour_data
- sherpa.astro.ui.contour_data(id: IdType | None = None, replot=False, overcontour=False, **kwargs) None
Contour the values of an image data set.
- Parameters:
id (int, str, or None, optional) – The data set that provides the data. If not given then the default identifier is used, as returned by
get_default_id
.replot (bool, optional) – Set to
True
to use the values calculated by the last call tocontour_data
. The default isFalse
.overcontour (bool, optional) – If
True
then add the data to an existing plot, otherwise create a new contour plot. The default isFalse
.
See also
get_data_contour
Return the data used by contour_data.
get_data_contour_prefs
Return the preferences for contour_data.
get_default_id
Return the default data set identifier.
contour
Create one or more plot types.
sherpa.astro.ui.set_coord
Set the coordinate system to use for image analysis.
Examples
Plot the data from the default data set:
>>> contour_data()
Contour the data and then overplot the data from the second data set:
>>> contour_data() >>> contour_data(2, overcontour=True)