get_model_contour_prefs
- sherpa.ui.get_model_contour_prefs()
Return the preferences for contour_model.
- Returns:
prefs – Changing the values of this dictionary will change any new contour plots.
- Return type:
See also
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.alphaThe transparency value used to draw the contours, where 0 is fully transparent and 1 is fully opaque.
colorsThe colors to draw the contours.
linewidthsWhat thickness of line to draw the contours.
xlogShould the X axis be drawn with a logarithmic scale? The default is
False.ylogShould the Y axis be drawn with a logarithmic scale? The default is
False.
Examples
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)