You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 3.0.0rc1.post3+gb9b02f189
matplotlib
Fork me on GitHub

matplotlib.axis.YAxis.set_units

YAxis.set_units(u)

set the units for axis

ACCEPTS: a units tag