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__(self, 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(self, 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(self, renderer)[source]
get_major_ticks(self, numticks=None)[source]

Return the list of major Ticks.

get_minor_ticks(self, numticks=None)[source]

Return the list of minor Ticks.

get_rotate_label(self, text)[source]
get_tightbbox(self, 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(self)[source]
set_pane_color(self, color)[source]

Set pane color to a RGBA tuple.

set_pane_pos(self, xys)[source]
set_rotate_label(self, 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