SimpleFormatter¶
-
SimpleFormatter
(*args, precision=6, zerotrim=True, **kwargs)[source]¶ Return a
FuncFormatter
instance that replicates thezerotrim
feature fromAutoFormatter
. 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
.