Version 3.0.2
matplotlib
Fork me on GitHub

matplotlib.axes.Axes.convert_yunits

Axes.convert_yunits(y)

For artists in an axes, if the yaxis has units support, convert y using yaxis unit type