You are reading an old version of the documentation (v2.2.5). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.get_yaxis_transform.html
Version 2.2.5
matplotlib
Fork me on GitHub

Table of Contents

matplotlib.axes.Axes.get_yaxis_transform

Axes.get_yaxis_transform(which='grid')

Get the transformation used for drawing y-axis labels, ticks and gridlines. The x-direction is in axis coordinates and the y-direction is in data coordinates.

Note

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.

Examples using matplotlib.axes.Axes.get_yaxis_transform