| [ Web Proxy ] |
| Viewing: https://matplotlib.org/stable/api/_as_gen/../axis_api.html#matplotlib.axis.Axis | [Back] [Original] |
matplotlib.axis#Table of Contents
Classes for the ticks and x- and y-axis.
Inheritance diagram of Tick, Ticker, XAxis, YAxis, XTick, YTick
Axis objects#Base class for XAxis and YAxis.
axesAxesThe Axes instance the artist resides in, or None.
TickerDetermines the major tick positions and their label format.
TickerDetermines the minor tick positions and their label format.
CallbackRegistryTextThe axis label.
The distance between the axis label and the tick labels.
Defaults to rcParams["axes.labelpad"] (default: 4.0).
TextA Text object containing the data offset of the ticks (if any).
pickradiusfloatThe acceptance radius for containment tests.
TickThe 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.
TickThe minor ticks.
AxesThe 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
AxesThe 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
AxesThe 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.
Clear the axis. |
|
Return this Axis' scale (as a str). |
Get the formatter of the major ticker. |
|
Get the locator of the major ticker. |
|
Get the formatter of the minor ticker. |
|
Get the locator of the minor ticker. |
|
Set the formatter of the major ticker. |
|
Set the locator of the major ticker. |
|
Set the formatter of the minor ticker. |
|
Set the locator of the minor ticker. |
|
If minor ticker locations that overlap with major ticker locations should be trimmed. |
|
The |
|
Set the coordinates of the label. |
|
Set the label position (top or bottom) |
|
Set the text value of the axis label. |
|
Return the label position (top or bottom) |
|
Get the text of the label. |
Return the list of major |
|
Return this Axis' major tick labels, as a list of |
|
Return this Axis' major tick lines as a list of |
|
Return this Axis' major tick locations in data coordinates. |
|
Return the list of minor |
|
Return this Axis' minor tick labels, as a list of |
|
Return this Axis' minor tick lines as a list of |
|
Return this Axis' minor tick locations in data coordinates. |
|
Return the axis offsetText as a Text instance. |
|
Get appearance parameters for ticks, ticklabels, and gridlines. |
|
Get this Axis' tick labels. |
|
Return this Axis' tick lines as a list of |
|
Return this Axis' tick locations in data coordinates. |
|
Return this Axis' grid lines as a list of |
|
Configure the grid lines. |
|
Set appearance parameters for ticks, ticklabels, and gridlines. |
|
Set up axis ticks and labels to treat data along this Axis as dates. |
|
Remove minor ticks from the Axis. |
|
Display default minor ticks on the Axis, depending on the scale ( |
Return the |
|
Return the |
|
Return whether this Axis is oriented in the "inverse" direction. |
|
Set the axis data limits. |
|
Set the axis view limits. |
|
Set whether this Axis is oriented in the "inverse" direction. |
Return the estimated number of ticks that can fit on the axis. |
|
Return a bounding box that encloses the axis. |
Test whether the artist contains the mouse event. |
|
The acceptance radius for containment tests. |
|
Return the depth of the axis used by the picker. |
|
Set the depth of the axis used by the picker. |
Set the units for axis. |
|
Return the units for axis. |
|
Set the unit converter for axis. |
|
Get the unit converter for axis. |
|
Introspect data for units converter and update the |
Read-only name identifying the axis. |
|
Return the ticks position ("top", "bottom", "default", or "unknown"). |
|
Set the ticks position. |
|
Set the label position (top or bottom) |
|
Move ticks and ticklabels (if present) to the bottom of the Axes. |
|
Move ticks and ticklabels (if present) to the top of the Axes. |
Read-only name identifying the axis. |
|
Return the ticks position ("left", "right", "default", or "unknown"). |
|
Set the ticks position. |
|
Set the label position (left or right) |
|
Move ticks and ticklabels (if present) to the left of the Axes. |
|
Move ticks and ticklabels (if present) to the right of the Axes. |
The |
|
Return the range vmin, vmax, restricted to the domain supported by the current scale. |
|
Re-initialize the major and minor Tick lists. |
|
Set the artist's clip path. |
|
Set the default limits for the axis data and view interval if they have not been not mutated yet. |
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.
[Discouraged] Return the axis label as a Text instance. |
|
Assigning legend labels is not supported. |
|
Set this Axis' tick locations and optionally tick labels. |
|
[Discouraged] Set this Axis' tick labels with list of string labels. |
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).
Notes
Ticks are managed though the autoscaling / view limit mechanism and therefore need very careful handling when explicitly accessed, see Tick objects.
The tick lines are implemented as Line2D instances using the
markers TICKLEFT, TICKRIGHT, TICKDOWN, TICKUP. Therefore,
properties are controlled via the marker, e.g. for the color
Line2D.set_markeredgecolor and not Line2D.set_color.
The tick location in data coords.
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
The tick location in data coords.
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
The tick location in data coords.
The tick size in points.
Return the tick location (data coords) as a scalar. |
|
Get the value of the tick label pad in points. |
|
Get the length of the tick outside of the Axes. |
|
Return the view limits |
|
Set the artist's clip path. |
|
Set the tick label pad in points |
|
Set the url of label1 and label2. |
|
Set the location of tick in data coords with scalar loc. |
| Web Proxy Viewer | New URL | Original Page |