SimpleFormatter¶
-
SimpleFormatter
(*args, precision=6, zerotrim=True, **kwargs)[source]¶ Replicates the
zerotrim
feature fromAutoFormatter
, but as a simplerFuncFormatter
instance. This is more suitable for arbitrary number formatting not necessarily associated with anyAxis
instance, e.g. labeling contours.- Parameters
precision (int, optional) – The maximum number of digits after the decimal point.
zerotrim (bool, optional) – Whether to trim trailing zeros. Default is
rc[‘axes.formatter.zerotrim’]
=True
.