matplotlib.axis
#
Table of Contents
Classes for the ticks and x- and y-axis.
Inheritance#Axis
objects#
Base class for XAxis
and YAxis
.
axes
Axes
The Axes
instance the artist resides in, or None.
Ticker
Determines the major tick positions and their label format.
Ticker
Determines the minor tick positions and their label format.
CallbackRegistry
Text
The axis label.
The distance between the axis label and the tick labels. Defaults to rcParams["axes.labelpad"]
(default: 4.0
).
Text
A Text
object containing the data offset of the ticks (if any).
pickradius
float
The acceptance radius for containment tests.
Tick
The major ticks.
Warning
Ticks are not guaranteed to be persistent. Various operations can create, delete and modify the Tick instances. There is an imminent risk that changes to individual ticks will not survive if you work on the figure further (including also panning/zooming on a displayed figure).
Working on the individual ticks is a method of last resort. Use set_tick_params
instead if possible.
Tick
The minor ticks.
Axes
The Axes
to which the created Axis belongs.
The acceptance radius for containment tests. See also Axis.contains
.
Whether to clear the Axis on creation. This is not required, e.g., when creating an Axis as part of an Axes, as Axes.clear
will call Axis.clear
. .. versionadded:: 3.8
Axes
The Axes
to which the created Axis belongs.
The acceptance radius for containment tests. See also Axis.contains
.
Whether to clear the Axis on creation. This is not required, e.g., when creating an Axis as part of an Axes, as Axes.clear
will call Axis.clear
. .. versionadded:: 3.8
Axes
The Axes
to which the created Axis belongs.
The acceptance radius for containment tests. See also Axis.contains
.
Whether to clear the Axis on creation. This is not required, e.g., when creating an Axis as part of an Axes, as Axes.clear
will call Axis.clear
. .. versionadded:: 3.8
A container for the objects defining tick position and format.
Locator
subclass
Determines the positions of the ticks.
Formatter
subclass
Determines the format of the tick labels.
These methods should be used together with care, calling set_ticks
to specify the desired tick locations before calling set_ticklabels
to specify a matching series of labels. Calling set_ticks
makes a FixedLocator
; it's list of locations is then used by set_ticklabels
to make an appropriate FuncFormatter
.
Tick
objects#
Abstract base class for the axis ticks, grid lines and labels.
Ticks mark a position on an Axis. They contain two lines as markers and two labels; one each for the bottom and top positions (in case of an XAxis
) or for the left and right positions (in case of a YAxis
).
Line2D
The left/bottom tick marker.
Line2D
The right/top tick marker.
Line2D
The grid line associated with the label position.
Text
The left/bottom tick label.
Text
The right/top tick label.
bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in points
Contains all the Artists needed to make an x tick - the tick line, the label text and the grid line
bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in points
Contains all the Artists needed to make a Y tick - the tick line, the label text and the grid line
bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in points
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4