matplotlib

matplotlib.axis.Axis.get_units

Axis.get_units()

return the units for axis