Version 2.2.2
matplotlib

matplotlib.axis.Axis.set_units

Axis.set_units(u)

set the units for axis

ACCEPTS: a units tag