DelchiPlot

class sherpa.plot.DelchiPlot[source]

Bases: sherpa.plot.ModelPlot

Create plots of the delta-chi value per point.

The value of (data-model)/error is plotted for each point.

plot_prefs

The preferences for the plot.

Type:dict
x

The X value for each point.

Type:array_like
y

The Y value for each point: (data-model)/error

Type:array_like
xerr

The half-width of each X “bin”, if set.

Type:array_like
yerr

The error on the Y value (each element is 1).

Type:array_like
xlabel, ylabel, title

Plot labels.

Type:str

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 = {'barsabove': False, 'capsize': 0, 'color': None, 'ecolor': None, 'linecolor': None, 'linestyle': 'None', 'marker': '.', 'markerfacecolor': None, 'markersize': None, 'ratioline': False, 'xaxis': True, 'xerrorbars': True, 'xlog': False, 'yerrorbars': True, 'ylog': False}

Methods Documentation

static 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.

plot(overplot=False, clearwindow=True)[source]
prepare(data, model, stat)[source]
static 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.