Return the preferences for plot_data.
prefs – Changing the values of this dictionary will change any new data plots. This dictionary will be empty if no plot backend is available.
- Return type
The meaning of the fields depend on the chosen plot backend. A value of
Nonemeans to use the default value for that attribute, unless indicated otherwise. These preferences are used by the following commands: plot_data, plot_bkg, plot_ratio, and the “fit” variants, such as plot_fit, plot_fit_resid, and plot_bkg_fit.
The following preferences are recognized by the matplotlib backend:
The transparency value used to draw the line or symbol, where 0 is fully transparent and 1 is fully opaque.
The barsabove argument for the matplotlib errorbar function.
The capsize argument for the matplotlib errorbar function.
The color to use (will be over-ridden by more-specific options below). The default is
The color to draw error bars. The default is
What color to use for the line connecting the data points. The default is
How should the line connecting the data points be drawn. The default is ‘None’, which means no line is drawn.
What style is used for the symbols. The default is
'.'which indicates a point.
What color to draw the symbol representing the data points. The default is
What size is the symbol drawn. The default is
Should a horizontal line be drawn at y=1? The default is
The default is
Should error bars be drawn for the X axis. The default is
Should the X axis be drawn with a logarithmic scale? The default is
False. This field can also be changed with the set_xlog and set_xlinear functions.
Should error bars be drawn for the Y axis. The default is
Should the Y axis be drawn with a logarithmic scale? The default is
False. This field can also be changed with the set_ylog and set_ylinear functions.
After these commands, any data plot will use a green symbol and not display Y error bars.
>>> prefs = get_data_plot_prefs() >>> prefs['color'] = 'green' >>> prefs['yerrorbars'] = False