ModelPlot¶
-
class
sherpa.astro.plot.ModelPlot[source] [edit on github]¶ Bases:
sherpa.plot.PlotCreate 1D plots of model values.
-
plot_prefs¶ dict – The preferences for the plot.
-
x¶ array_like – The X value for each point (the independent variable).
-
y¶ array_like – The Y value for each point (the dependent variable).
-
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_prefsMethods 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= {'barsabove': False, 'capsize': None, 'color': None, 'ecolor': None, 'linecolor': None, 'linestyle': '-', 'marker': 'None', 'markerfacecolor': None, 'markersize': None, 'ratioline': False, 'xaxis': False, 'xerrorbars': False, 'xlog': False, 'yerrorbars': False, 'ylog': False}
Methods Documentation
-
static
hline(y, xmin=0, xmax=1, linecolor=None, linestyle=None, linewidth=None, overplot=False, clearwindow=True) [edit on github]¶ Draw a line at constant y, extending over the plot.
-
overplot(*args, **kwargs) [edit on github]¶ Add the data to an existing plot.
-
plot(overplot=False, clearwindow=True)[source] [edit on github]¶
-
prepare(data, model, stat=None)[source] [edit on github]¶
-
static
vline(x, ymin=0, ymax=1, linecolor=None, linestyle=None, linewidth=None, overplot=False, clearwindow=True) [edit on github]¶ Draw a line at constant x, extending over the plot.
-