smpl.plot.LogFormatterMathtext¶
- class smpl.plot.LogFormatterMathtext(base=10.0, labelOnlyBase=False, minor_thresholds=None, linthresh=None)[source]¶
Bases:
LogFormatterFormat values for log axis using
exponent = log_base(value).- __init__(base=10.0, labelOnlyBase=False, minor_thresholds=None, linthresh=None)¶
Methods
__init__([base, labelOnlyBase, ...])base(base)[Deprecated] Change the base for labeling.
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.
get_offset()label_minor(labelOnlyBase)[Deprecated] Switch minor tick labeling on or off.
set_axis(axis)set_base(base)Change the base for labeling.
set_bounds(vmin, vmax)[Deprecated]
set_data_interval(vmin, vmax)[Deprecated]
set_label_minor(labelOnlyBase)Switch minor tick labeling on or off.
set_locs([locs])Use axis view limits to control which ticks are labeled.
set_view_interval(vmin, vmax)[Deprecated]
Attributes
axislocs- base(base)¶
[Deprecated] Change the base for labeling.
Warning
Should always match the base used for
LogLocatorNotes¶
Deprecated since version 3.6: Use set_base() instead.
- 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)¶
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.
- format_ticks(values)¶
Return the tick labels for all the ticks at once.
- label_minor(labelOnlyBase)¶
[Deprecated] Switch minor tick labeling on or off.
Parameters¶
- labelOnlyBasebool
If True, label ticks only at integer powers of base.
Notes¶
Deprecated since version 3.6: Use set_label_minor() instead.
- set_base(base)¶
Change the base for labeling.
Warning
Should always match the base used for
LogLocator
- set_bounds(vmin, vmax)¶
[Deprecated]
Notes¶
Deprecated since version 3.5: Use .Axis.set_view_interval and .Axis.set_data_interval instead.
- set_data_interval(vmin, vmax)¶
[Deprecated]
Notes¶
Deprecated since version 3.5: Use .Axis.set_data_interval instead.
- set_label_minor(labelOnlyBase)¶
Switch minor tick labeling on or off.
Parameters¶
- labelOnlyBasebool
If True, label ticks only at integer powers of base.
- set_locs(locs=None)¶
Use axis view limits to control which ticks are labeled.
The locs parameter is ignored in the present algorithm.