Bases: ScalarFormatter
The default formatter used for proplot tick labels. Replaces ScalarFormatter
.
zerotrim (bool
, default: rc['format.zerotrim']
) – Whether to trim trailing decimal zeros.
tickrange (2-tuple
of float
, optional) – Range within which major tick marks are labeled. All ticks are labeled by default.
wraprange (2-tuple
of float
, optional) – Range outside of which tick values are wrapped. For example, (-180, 180)
will format a value of 200
as -160
.
prefix, suffix (str
, optional) – Prefix and suffix for all tick strings. The suffix is added before the optional negpos
suffix.
negpos (str
, optional) – Length-2 string indicating the suffix for “negative” and “positive” numbers, meant to replace the minus sign.
**kwargs – Passed to matplotlib.ticker.ScalarFormatter
.
Note
matplotlib.ticker.ScalarFormatter
determines the number of significant digits based on the axis limits, and therefore may truncate digits while formatting ticks on highly non-linear axis scales like LogScale
. AutoFormatter
corrects this behavior, making it suitable for arbitrary axis scales. We therefore use AutoFormatter
with every axis scale by default.
Methods Summary
__call__
(x[, pos])
Convert number to a string.
Get the offset but always use math text.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4