ClawPlotAxes

For usage see Specifying the desired plots (usually in setplot.py) and Plotting examples.

Objects of this class are usually created by the new_plotaxes method of a ClawPlotFigure object.

class ClawPlotAxes

Attributes

The following attributes can be set by the user:

title : str
The title to appear at the top of the axis.
axescmd : str
The command to be used to create this axes, for example:
  • “subplot(1,1,1)” for a single axes filling the figure
  • “subplot(2,1,1)” for the top half
  • “axes([0.1, 0.1, 0.2, 0.8])” for a tall skinny axis.

See the matplotlib documentation for axes.

xlim : array [xmin, xmax] or 'auto'
The x-axis limits if an array with two elements, or choose automatically
ylim : array [ymin, ymax] or 'auto'
The y-axis limits if an array with two elements, or choose automatically
afteraxes : function or str
A string or function that is to be executed after creating all plot items on this axes
show : bool
If False, suppress showing this axes and all items on it.

Methods

new_plotitem()
Returns an object of class ClawPlotItem associated with this axes. A single axes may have several items associated with it.
gethandle()
Returns the handle for this axes.

Table Of Contents

Previous topic

ClawPlotFigure

Next topic

ClawPlotItem

This Page