You are reading an old version of the documentation (v3.2.2). For the latest version see https://matplotlib.org/stable/
Version 3.2.2
matplotlib
Fork me on GitHub
  • Installation
  • Documentation
  • Examples
  • Tutorials
  • Contributing

Navigation

  • index
  • modules |
  • next |
  • previous |
  • home| 
  • contents »
  • API Overview »
  • matplotlib.axis »
  • matplotlib.axis.XAxis.set_major_formatter

Table of Contents

  • matplotlib.axis.XAxis.set_major_formatter
    • Examples using matplotlib.axis.XAxis.set_major_formatter

Related Topics

  • Documentation overview
    • API Overview
      • matplotlib.axis
        • Previous: matplotlib.axis.XAxis.set_label_text
        • Next: matplotlib.axis.XAxis.set_major_locator
Show Page Source

matplotlib.axis.XAxis.set_major_formatter¶

XAxis.set_major_formatter(self, formatter)¶

Set the formatter of the major ticker.

Parameters:
formatterFormatter

Examples using matplotlib.axis.XAxis.set_major_formatter¶

Date tick labels

Date tick labels¶

Custom tick formatter for time series

Custom tick formatter for time series¶

Labeling ticks using engineering notation

Labeling ticks using engineering notation¶

Bachelor's degrees by gender

Bachelor's degrees by gender¶

3D surface (color map)

3D surface (color map)¶

Centering labels between ticks

Centering labels between ticks¶

Formatting date ticks using ConciseDateFormatter

Formatting date ticks using ConciseDateFormatter¶

Date Demo Convert

Date Demo Convert¶

Date Demo Rrule

Date Demo Rrule¶

Date Index Formatter

Date Index Formatter¶

Major and minor ticks

Major and minor ticks¶

Setting tick labels from a list of values

Setting tick labels from a list of values¶

The Lifecycle of a Plot

The Lifecycle of a Plot¶

Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib¶

Text in Matplotlib Plots

Text in Matplotlib Plots¶

© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2018 The Matplotlib development team.
Last updated on Jun 17, 2020. Created using Sphinx 3.1.1. Doc version v3.2.2-2-g137edd56a.