You are reading an old version of the documentation (v3.4.0). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.axis.Axis.set_major_locator.html
Version 3.4.0
matplotlib
Fork me on GitHub
  • Installation
  • Documentation
  • Examples
  • Tutorials
  • Contributing

Navigation

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

Table of Contents

  • matplotlib.axis.Axis.set_major_locator
    • Examples using matplotlib.axis.Axis.set_major_locator
Show Page Source

matplotlib.axis.Axis.set_major_locator¶

Axis.set_major_locator(self, locator)[source]¶

Set the locator of the major ticker.

Parameters:
locatorLocator

Examples using matplotlib.axis.Axis.set_major_locator¶

Hatch-filled histograms

Hatch-filled histograms¶

Creating a timeline with lines, dates, and text

Creating a timeline with lines, dates, and text¶

Date tick labels

Date tick labels¶

Anatomy of a figure

Anatomy of a figure¶

3D surface (colormap)

3D surface (colormap)¶

3D surface (checkerboard)

3D surface (checkerboard)¶

Scales

Scales¶

MRI With EEG

MRI With EEG¶

SkewT-logP diagram: using transforms and custom projections

SkewT-logP diagram: using transforms and custom projections¶

Centering labels between ticks

Centering labels between ticks¶

Formatting date ticks using ConciseDateFormatter

Formatting date ticks using ConciseDateFormatter¶

Date Demo Convert

Date Demo Convert¶

Placing date ticks using recurrence rules

Placing date ticks using recurrence rules¶

Major and minor ticks

Major and minor ticks¶

Tick formatters

Tick formatters¶

Setting tick labels from a list of values

Setting tick labels from a list of values¶

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 - 2021 The Matplotlib development team.
Last updated on Mar 26, 2021. Created using Sphinx 3.2.1. Doc version v3.4.0-2-gcb03754703.