Version 2.2.2
matplotlib

matplotlib.axis.YAxis.get_units

YAxis.get_units()

return the units for axis