Version 3.0.2
matplotlib

matplotlib.axis.XAxis.get_units

XAxis.get_units()

return the units for axis