Version 3.0.3
matplotlib
Fork me on GitHub

matplotlib.artist.Artist.convert_yunits

Artist.convert_yunits(y)[source]

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