John Hunter Excellence in Plotting Contest 2020 submissions are open! Entries are due June 1, 2020.

Version 3.2.1
matplotlib
Fork me on GitHub
  • Installation
  • Documentation
  • Examples
  • Tutorials
  • Contributing

Navigation

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

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¶

../../_images/sphx_glr_date_thumb.png

Date tick labels¶

../../_images/sphx_glr_date_index_formatter_thumb.png

Custom tick formatter for time series¶

../../_images/sphx_glr_engineering_formatter_thumb.png

Labeling ticks using engineering notation¶

../../_images/sphx_glr_bachelors_degrees_by_gender_thumb.png

Bachelor's degrees by gender¶

../../_images/sphx_glr_surface3d_thumb.png

3D surface (color map)¶

../../_images/sphx_glr_centered_ticklabels_thumb.png

Centering labels between ticks¶

../../_images/sphx_glr_date_concise_formatter_thumb.png

Formatting date ticks using ConciseDateFormatter¶

../../_images/sphx_glr_date_demo_convert_thumb.png

Date Demo Convert¶

../../_images/sphx_glr_date_demo_rrule_thumb.png

Date Demo Rrule¶

../../_images/sphx_glr_date_index_formatter2_thumb.png

Date Index Formatter¶

../../_images/sphx_glr_major_minor_demo_thumb.png

Major and minor ticks¶

../../_images/sphx_glr_tick_labels_from_values_thumb.png

Setting tick labels from a list of values¶

../../_images/sphx_glr_lifecycle_thumb.png

The Lifecycle of a Plot¶

../../_images/sphx_glr_colormaps_thumb.png

Choosing Colormaps in Matplotlib¶

../../_images/sphx_glr_text_intro_thumb.png

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 Apr 08, 2020. Created using Sphinx 3.0.0. Doc version v3.2.1-13-g7a9bc5ebb-dirty.