Version 3.3.3
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

Related Topics

  • Documentation overview
    • API Overview
      • matplotlib.axis
        • Previous: matplotlib.axis.Axis.set_major_formatter
        • Next: matplotlib.axis.Axis.set_minor_formatter
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 (color map)

3D surface (color map)¶

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¶

Date Demo Rrule

Date Demo Rrule¶

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 - 2020 The Matplotlib development team.
Last updated on Nov 12, 2020. Created using Sphinx 3.1.1. Doc version v3.3.3-2-g447bdbbf58.