pycba.units.set_units#

set_units(units)[source]#

Set the global default display unit system used by plots.

Parameters:

units (Union[str, UnitSystem]) – A preset name (e.g. "SI", "US-ft", "N-mm", "none") or a UnitSystem instance.

Returns:

The resolved unit system now in effect.

Return type:

UnitSystem