SciFormatter¶
- class SciFormatter(precision=None, zerotrim=None)[source]¶
Bases:
matplotlib.ticker.FormatterFormat numbers with scientific notation.
- Parameters
precision (int, optional) – The maximum number of digits after the decimal point. Default is
6whenzerotrimisTrueand2otherwise.zerotrim (bool, optional) – Whether to trim trailing zeros. Default is
Methods Summary
__call__(x[, pos])Convert number to a string.