FracFormatter¶
- class FracFormatter(symbol='', number=1)[source]¶
Bases:
matplotlib.ticker.Formatter
Format numbers as fractions or multiples of some value. This is powered by the builtin
Fraction
class and thelimit_denominator
method.- Parameters
Methods Summary
__call__
(x[, pos])Convert number to a string.
Methods Documentation