matplotlib.axis.Axis.set_major_locator#

Axis.set_major_locator(locator)[source]#

Set the locator of the major ticker.

Parameters:
locatorLocator

Examples using matplotlib.axis.Axis.set_major_locator#

Timeline with lines, dates, and text

Timeline with lines, dates, and text

Tick locators

Tick locators

Major and minor ticks

Major and minor ticks

Center labels between ticks

Center labels between ticks

Multilevel (nested) ticks

Multilevel (nested) ticks

Setting tick labels from a list of values

Setting tick labels from a list of values

Date tick labels

Date tick labels

Date tick locators and formatters

Date tick locators and formatters

Format date ticks using ConciseDateFormatter

Format date ticks using ConciseDateFormatter

Date converter demo

Date converter demo

Placing date ticks using recurrence rules

Placing date ticks using recurrence rules

Custom tick formatter for time series

Custom tick formatter for time series

3D surface (colormap)

3D surface (colormap)

3D surface (checkerboard)

3D surface (checkerboard)

Anatomy of a figure

Anatomy of a figure

SkewT-logP diagram: using transforms and custom projections

SkewT-logP diagram: using transforms and custom projections

Axis scales

Axis scales

Axis ticks

Axis ticks

Plotting dates and strings

Plotting dates and strings

Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib

Text in Matplotlib

Text in Matplotlib