TexFormatter¶
- class stonerplots.TexFormatter¶
Bases:
Formatter
An axis tick label formatter that emits Tex formula mode code.
Formatting is set so that large numbers are registered as :math`times 10^{power}` rather than using E notation.
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.
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.