A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://proplot.readthedocs.io/en/latest/api/proplot.ticker.FracFormatter.html below:

FracFormatter — ProPlot documentation

Getting Started

User Guide

Reference

ProPlot FracFormatter
class FracFormatter(symbol='', number=1)[source]

Bases: Formatter

Format numbers as integers or integer fractions. Optionally express the values relative to some constant like numpy.pi.

Parameters
  • symbol (str, default: '') – The constant symbol, e.g. r'$\pi$'.

  • number (float, default: 1) – The constant value, e.g. numpy.pi.

Note

The fractions shown by this formatter are resolved using the builtin fractions.Fraction class and fractions.Fraction.limit_denominator.

See also

proplot.constructor.Formatter, proplot.ticker.AutoFormatter

Methods Summary

__call__(x[, pos])

Convert number to a string.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4