You are reading an old version of the documentation (v3.1.1). For the latest version see
Version 3.1.2
Fork me on GitHub


Axes.get_yaxis_text2_transform(self, pad_points)
transform : Transform

The transform used for drawing secondart y-axis labels, which will add pad_points of padding (in points) between the axes and the label. The x-direction is in axis coordinates and the y-direction is in data corrdinates

valign : {'center', 'top', 'bottom', 'baseline', 'center_baseline'}

The text vertical alignment.

halign : {'center', 'left', 'right'}

The text horizontal alignment.


This transformation is primarily used by the Axis class, and is meant to be overridden by new kinds of projections that may need to place axis elements in different locations.