ResidPlot¶
-
class
sherpa.astro.plot.
ResidPlot
[source]¶ Bases:
sherpa.plot.ModelPlot
Create plots of the residuals (data - model) per point.
The value of (data-model) is plotted for each point.
-
plot_prefs
¶ dict – The preferences for the plot.
-
x
¶ array_like – The X value for each point.
-
y
¶ array_like – The Y value for each point: data-model.
-
xerr
¶ array_like – The half-width of each X “bin”, if set.
-
yerr
¶ array_like – The error on the Y value, if set.
-
xlabel, ylabel, title
str – Plot labels.
Attributes Summary
plot_prefs
Methods Summary
hline
(y[, xmin, xmax, linecolor, linestyle, ...])Draw a line at constant y, extending over the plot. overplot
(\*args, \*\*kwargs)Add the data to an existing plot. plot
([overplot, clearwindow])prepare
(data, model, stat)vline
(x[, ymin, ymax, linecolor, linestyle, ...])Draw a line at constant x, extending over the plot. Attributes Documentation
-
plot_prefs
= {'markersize': None, 'barsabove': False, 'ratioline': False, 'xaxis': True, 'ylog': False, 'ecolor': None, 'capsize': 0, 'yerrorbars': True, 'linecolor': None, 'markerfacecolor': None, 'marker': '.', 'color': None, 'linestyle': 'None', 'xlog': False, 'xerrorbars': True}
Methods Documentation
-
hline
(y, xmin=0, xmax=1, linecolor=None, linestyle=None, linewidth=None, overplot=False, clearwindow=True)¶ Draw a line at constant y, extending over the plot.
-
overplot
(*args, **kwargs)¶ Add the data to an existing plot.
-
vline
(x, ymin=0, ymax=1, linecolor=None, linestyle=None, linewidth=None, overplot=False, clearwindow=True)¶ Draw a line at constant x, extending over the plot.
-