TexFormatter¶
- class Stoner.plot.formats.TexFormatter[source]¶
Bases:
FormatterAn 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.
Attributes Summary
Methods Summary
__call__(value[, pos])Return the value ina suitable texable format.
create_dummy_axis(**kwargs)fix_minus(s)Some classes may want to replace a hyphen for minus with the proper Unicode symbol (U+2212) for typographical correctness. This is a helper method to perform such a replacement when it is enabled via :rc:`axes.unicode_minus`.
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.
format_ticks(values)Return the tick labels for all the ticks at once.
set_axis(axis)set_locs(locs)Set the locations of the ticks.
Attributes Documentation
- axis = None¶
- locs = []¶
Methods Documentation
- create_dummy_axis(**kwargs)¶
- static fix_minus(s)¶
Some classes may want to replace a hyphen for minus with the proper Unicode symbol (U+2212) for typographical correctness. This is a helper method to perform such a replacement when it is enabled via :rc:`axes.unicode_minus`.
- format_data(value)[source]¶
Return the full string representation of the value with the position unspecified.
- format_data_short(value)[source]¶
Return a short string version of the tick value.
Defaults to the position-independent long value.
- format_ticks(values)¶
Return the tick labels for all the ticks at once.
- get_offset()¶
- set_axis(axis)¶
- set_locs(locs)¶
Set the locations of the ticks.
This method is called before computing the tick labels because some formatters need to know all tick locations to do so.