TexEngFormatter¶
- class stonerplots.TexEngFormatter(unit='', places=None, sep=' ', *, usetex=None, useMathText=None, useOffset=False)¶
Bases:
EngFormatter
An axis tick label formatter that emits Tex formula mode code.
Formatting is set so that large numbers are registered as with SI prefixes rather than using E notation.
Attributes Summary
Methods Summary
__call__
(value[, pos])Return the value ina suitable texable format.
format_data
(value)Return the full string representation of the value with the position unspecified.
format_data_short
(value)Return a short string version of the tick value.
Attributes Documentation
- prefix = {-24: 'y', -21: 'z', -18: 'a', -15: 'f', -12: 'p', -9: 'n', -6: '\\mu', -3: 'm', 0: '', 3: 'k', 6: 'M', 9: 'G', 12: 'T', 15: 'P', 18: 'E', 21: 'Z', 24: 'Y'}¶
Methods Documentation
- __call__(value, pos=None)¶
Return the value ina suitable texable format.
- format_data(value)¶
Return the full string representation of the value with the position unspecified.
- format_data_short(value)¶
Return a short string version of the tick value.
Defaults to the position-independent long value.