matplotlib.axis.Axis.set_units#

Axis.set_units(u)[source]#

Set the units for axis.

Parameters:
uunits tag

Notes

The units of any shared axis will also be updated.

Examples using matplotlib.axis.Axis.set_units#

Artist tests

Artist tests

Group barchart with units

Group barchart with units

Unit handling

Unit handling