Bases: mpl_toolkits.axisartist.axis_artist.AttributeCopier
, matplotlib.lines.Line2D
Ticks are derived from Line2D, and note that ticks themselves are markers. Thus, you should use set_mec, set_mew, etc.
To change the tick size (length), you need to use set_ticksize. To change the direction of the ticks (ticks are in opposite direction of ticklabels by default), use set_tick_out(False).
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).
RendererBase
subclass.
This method is overridden in the Artist subclasses.
Return the marker edge color.
See also set_markeredgecolor
.
Return the marker edge width in points.
See also set_markeredgewidth
.
Return the underlying artist that actually defines some properties (e.g., color) of this artist.
Return whether ticks are drawn inside or outside the axes.
Return length of the ticks in points.
Set multiple properties at once.
Supported properties are
Property | Description |
---|---|
a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array | |
scalar or None | |
bool | |
| bool |
bool | |
Patch or (Path, Transform) or None | |
| unknown |
| |
| |
sequence of floats (on/off ink in points) or (None, None) | |
(2, N) array or two 1D arrays | |
| {'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'}, default: 'default' |
{'full', 'left', 'right', 'bottom', 'top', 'none'} | |
str | |
bool | |
object | |
| {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} |
| float |
unknown | |
marker style string, | |
| color |
| float |
| color |
| color |
| float |
None or int or (int, int) or slice or list[int] or float or (float, float) or list[bool] | |
float or callable[[Artist, Event], tuple[bool, dict]] | |
float | |
bool | |
(scale: float, length: float, randomness: float) | |
bool or None | |
| |
| |
unknown | |
unknown | |
str | |
bool | |
1D array | |
1D array | |
float |
Set the color of the line.
Set whether ticks are drawn inside or outside the axes.
Set length of the ticks in points.
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/mpl_toolkits.axisartist.axis_artist.Ticks.html