SplitPlot

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

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

Create multiple plots.

rows

int – Number of rows of plots. The default is 2.

cols

int – Number of columns of plots. The default is 1.

plot_prefs

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

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 = {'linewidths': None, 'colors': None, 'xlog': False, 'ylog': False}
plot_prefs = {'left': None, 'top': None, 'right': None, 'wspace': 0.3, 'hspace': 0.4, 'bottom': None}

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.

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.

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.