exa.core.plotting.qpu_core.utils.shorten_label

Contents

exa.core.plotting.qpu_core.utils.shorten_label#

shorten_label(quantity)#

Provide a shortened unit name for axis labels, given the observation name.

Parameters:

quantity (str) – A long descriptive name of the quantity.

Returns:

The shorthand name.

Return type:

str