SplitPlot

class sherpa.plot.SplitPlot(rows=2, cols=1)[source]

Bases: sherpa.plot.Plot, sherpa.plot.Contour

Create multiple plots.

rows

Number of rows of plots. The default is 2.

Type:int
cols

Number of columns of plots. The default is 1.

Type:int
plot_prefs

The preferences for the plots. This depends on the plot backend.

Type:dict

Attributes Summary

contour_prefs
plot_prefs

Methods Summary

addcontour(plot, *args, **kwargs) Add the contour plot to the next space.
addplot(plot, *args, **kwargs) Add the plot to the next space.
contour(row, col, plot, *args, **kwargs) Add the contour in the given space.
hline(y[, xmin, xmax, linecolor, linestyle, …]) Draw a line at constant y, extending over the plot.
overcontour(row, col, plot, *args, **kwargs) Add a contour plot to the given space without destroying the contents.
overlaycontour(plot, *args, **kwargs) Add the contour to the current space without destroying the contents.
overlayplot(plot, *args, **kwargs) Add the plot to the current space without destroying the contents.
overplot(row, col, plot, *args, **kwargs) Add a plot to the given space without destroying the contents.
plot(row, col, plot, *args, **kwargs) Add the plot in the given space.
reset([rows, cols]) Prepare for a new set of plots or contours.
vline(x[, ymin, ymax, linecolor, linestyle, …]) Draw a line at constant x, extending over the plot.

Attributes Documentation

contour_prefs = {'colors': None, 'linewidths': None, 'xlog': False, 'ylog': False}
plot_prefs = {'bottom': None, 'hspace': 0.4, 'left': None, 'right': None, 'top': None, 'wspace': 0.3}

Methods Documentation

addcontour(plot, *args, **kwargs)[source]

Add the contour plot to the next space.

addplot(plot, *args, **kwargs)[source]

Add the plot to the next space.

contour(row, col, plot, *args, **kwargs)[source]

Add the contour in the given space.

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.

overcontour(row, col, plot, *args, **kwargs)[source]

Add a contour plot to the given space without destroying the contents.

overlaycontour(plot, *args, **kwargs)[source]

Add the contour to the current space without destroying the contents.

overlayplot(plot, *args, **kwargs)[source]

Add the plot to the current space without destroying the contents.

overplot(row, col, plot, *args, **kwargs)[source]

Add a plot to the given space without destroying the contents.

plot(row, col, plot, *args, **kwargs)[source]

Add the plot in the given space.

reset(rows=2, cols=1)[source]

Prepare for a new set of plots or contours.

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.