mpl_toolkits.mplot3d.axis3d.Axis

class mpl_toolkits.mplot3d.axis3d.Axis(adir, v_intervalx, d_intervalx, axes, *args, rotate_label=None, **kwargs)[source]

Bases: matplotlib.axis.XAxis

An Axis class for the 3D plots.

Parameters:
axesmatplotlib.axes.Axes

The Axes to which the created Axis belongs.

pickradiusfloat

The acceptance radius for containment tests. See also Axis.contains.

__init__(adir, v_intervalx, d_intervalx, axes, *args, rotate_label=None, **kwargs)[source]
Parameters:
axesmatplotlib.axes.Axes

The Axes to which the created Axis belongs.

pickradiusfloat

The acceptance radius for containment tests. See also Axis.contains.

__module__ = 'mpl_toolkits.mplot3d.axis3d'
property d_interval
draw(renderer)[source]

Draw the Artist (and its children) using the given renderer.

This has no effect if the artist is not visible (Artist.get_visible returns False).

Parameters:
rendererRendererBase subclass.

Notes

This method is overridden in the Artist subclasses.

draw_pane(renderer)[source]
get_major_ticks(numticks=None)[source]

Return the list of major Ticks.

get_minor_ticks(numticks=None)[source]

Return the list of minor Ticks.

get_rotate_label(text)[source]
get_tightbbox(renderer, *, for_layout_only=False)[source]

Return a bounding box that encloses the axis. It only accounts tick labels, axis label, and offsetText.

If for_layout_only is True, then the width of the label (if this is an x-axis) or the height of the label (if this is a y-axis) is collapsed to near zero. This allows tight/constrained_layout to ignore too-long labels when doing their layout.

init3d()[source]
set_pane_color(color)[source]

Set pane color to a RGBA tuple.

set_pane_pos(xys)[source]
set_rotate_label(val)[source]

Whether to rotate the axis label: True, False or None. If set to None the label will be rotated if longer than 4 chars.

property v_interval

Examples using mpl_toolkits.mplot3d.axis3d.Axis