A RetroSearch Logo

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

Search Query:

Showing content from https://matplotlib.org/stable/api/_as_gen/matplotlib.axis.Axis.set_major_formatter.html below:

matplotlib.axis.Axis.set_major_formatter — Matplotlib 3.10.5 documentation

matplotlib.axis.Axis.set_major_formatter#
Axis.set_major_formatter(formatter)[source]#

Set the formatter of the major ticker.

In addition to a Formatter instance, this also accepts a str or function.

For a str a StrMethodFormatter is used. The field used for the value must be labeled 'x' and the field used for the position must be labeled 'pos'. See the StrMethodFormatter documentation for more information.

For a function, a FuncFormatter is used. The function must take two inputs (a tick value x and a position pos), and return a string containing the corresponding tick label. See the FuncFormatter documentation for more information.

Parameters:
formatterFormatter, str, or function
Examples using matplotlib.axis.Axis.set_major_formatter#

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