Last modified: December 2023

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/get_model_contour_prefs.html
Jump to: · Example · PARAMETERS · Notes · Bugs · See Also


AHELP for CIAO 4.16 Sherpa

get_model_contour_prefs

Context: visualization

Synopsis

Return the preferences for contour_model.

Syntax

get_model_contour_prefs()

Example

Change the contours for the model to be drawn in 'orange':

>>> prefs = get_model_contour_prefs()
>>> prefs['color'] = 'orange'
>>> contour_data()
>>> contour_model(overcontour=True)

PARAMETERS

This function has no parameters

Return value

The return value from this function is:

prefs -- Changing the values of this dictionary will change any new contour plots.

Notes

The meaning of the fields depend on the chosen plot backend. A value of none (or not set) means to use the default value for that attribute, unless indicated otherwise.

Item Definition
alpha The transparency value used to draw the contours, where 0 is fully transparent and 1 is fully opaque.
colors The colors to draw the contours.
linewidths What thickness of line to draw the contours.
xlog Should the X axis be drawn with a logarithmic scale? The default is False .
ylog Should the Y axis be drawn with a logarithmic scale? The default is False .

Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

sherpaish
get_contour_prefs
visualization
contour_model