The 2019 SciPy John Hunter Excellence in Plotting Contest is accepting submissions!
Apply by June 8th

Version 3.1.0
matplotlib
Fork me on GitHub

matplotlib.axes.Axes.get_yaxis_text1_transform

Axes.get_yaxis_text1_transform(self, pad_points)
Returns:
transform : Transform

The transform used for drawing 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.

Notes

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.