mpl_toolkits.axisartist.axis_artist.TickLabels¶
-
class
mpl_toolkits.axisartist.axis_artist.
TickLabels
(*, axis_direction='bottom', **kwargs)[source]¶ Bases:
mpl_toolkits.axisartist.axis_artist.AxisLabel
Tick Labels. While derived from Text, this single artist draws all ticklabels. As in AxisLabel, the position of the text is updated in the fly, so changing text position has no effect. Otherwise, the properties can be changed as a normal Text. Unlike the ticklabels of the mainline matplotlib, properties of single ticklabel alone cannot modified.
To change the pad between ticks and ticklabels, use set_pad.
[Deprecated]
Notes
Deprecated since version 3.2:
-
__init__
(self, *, axis_direction='bottom', **kwargs)[source]¶ [Deprecated]
Notes
Deprecated since version 3.2:
-
__module__
= 'mpl_toolkits.axisartist.axis_artist'¶
-
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: - renderer
RendererBase
subclass.
Notes
This method is overridden in the Artist subclasses.
- renderer
-
get_ref_artist
(self)[source]¶ Return the underlying artist that actually defines some properties (e.g., color) of this artist.
-
get_texts_widths_heights_descents
(self, renderer)[source]¶ Return a list of
(width, height, descent)
tuples for ticklabels.Empty labels are left out.
-
set_axis_direction
(self, label_direction)[source]¶ Adjust the text angle and text alignment of ticklabels according to the matplotlib convention.
The label_direction must be one of [left, right, bottom, top].
property left bottom right top ticklabels angle 90 0 -90 180 ticklabel va center baseline center baseline ticklabel ha right center right center Note that the text angles are actually relative to (90 + angle of the direction to the ticklabel), which gives 0 for bottom axis.
-