FracFormatter¶
-
FracFormatter
(symbol='', number=1)[source]¶ Return a
FuncFormatter
that formats numbers as fractions or multiples of some arbitrary value. This is powered by the builtinFraction
class and thelimit_denominator
method.- Parameters
symbol (str) – The symbol, e.g.
r'$\pi$'
. Default is''
.number (float) – The value, e.g.
numpy.pi
. Default is1
.