Version 2.2.3
matplotlib

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