Module plottools.axes

Setting axes appearance.

Axes member functions

Figure member functions

Same functions as the ones for the Axes. Functions are called on all figure axes.

Settings

Install/uninstall axes functions

You usually do not need to call these functions. Upon loading the axes module, install_axes() is called automatically.

Functions

def set_arrow_style(ax, spines='lb', xpos=0, ypos=0)

Turn the axes into arrows through the origin.

Note: Call this function after you have set the xlabel and ylabel.

Parameters

ax : matplotlib figure, matplotlib axis, or list of matplotlib axes
Axes whose style is changed. If figure, then apply manipulations on all axes of the figure. If list of axes, apply manipulations on each of the given axes.
spines : str
String specifying which spines should be turned into arrows ('lrbt').
xpos : float
Position of the verical axis ('lr') on the x-axis.
ypos : float
Position of the horizontal axis ('bt') on the y-axis.
def axes_params(xmargin=None, ymargin=None, zmargin=None, color=None, spinecolor=None, spinewidth=None)

Set rc settings for axes.

Only parameters that are not None are updated.

Parameters

xmargin : float
Padding added to x-axis limits in fractions of the data interval. Sets rcParam axes.xmargin.
ymargin : float
Padding added to y-axis limits in fractions of the data interval. Sets rcParam axes.ymargin.
zmargin : float
Padding added to z-axis limits in fractions of the data interval. Sets rcParam axes.zmargin.
color : matplotlib color or 'none'
Background color for each subplot. Sets rcParam axes.facecolor. For setting the backround color of a given axes, use ax.set_facecolor(color)
spinecolor : matplotlib color or 'none'
Color of the spines. Sets rcParam axes.edgecolor.
spinewidth : float
Line width of the spines. Sets rcParam axes.linewidth.
def install_axes()

Install functions of the axes module in matplotlib.

This function is called automatically upon importing the module.

Adds the set_arrow_style() function to matplotlib.Axes.

See Also

uninstall_axes()

def uninstall_axes()

Uninstall all code of the axes module from matplotlib.

See Also

install_axes()

def demo()

Run a demonstration of the axes module.