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#

Hatch-filled histograms

Hatch-filled histograms

Hatch-filled histograms
Creating a timeline with lines, dates, and text

Creating a timeline with lines, dates, and text

Creating a timeline with lines, dates, and text
Date tick labels

Date tick labels

Date tick labels
Anatomy of a figure

Anatomy of a figure

Anatomy of a figure
3D surface (colormap)

3D surface (colormap)

3D surface (colormap)
3D surface (checkerboard)

3D surface (checkerboard)

3D surface (checkerboard)
Scales

Scales

Scales
MRI with EEG

MRI with EEG

MRI with EEG
SkewT-logP diagram: using transforms and custom projections

SkewT-logP diagram: using transforms and custom projections

SkewT-logP diagram: using transforms and custom projections
Centering labels between ticks

Centering labels between ticks

Centering labels between ticks
Formatting date ticks using ConciseDateFormatter

Formatting date ticks using ConciseDateFormatter

Formatting date ticks using ConciseDateFormatter
Date Demo Convert

Date Demo Convert

Date Demo Convert
Placing date ticks using recurrence rules

Placing date ticks using recurrence rules

Placing date ticks using recurrence rules
Custom tick formatter for time series

Custom tick formatter for time series

Custom tick formatter for time series
Major and minor ticks

Major and minor ticks

Major and minor ticks
Setting tick labels from a list of values

Setting tick labels from a list of values

Setting tick labels from a list of values
Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib
Text in Matplotlib Plots

Text in Matplotlib Plots

Text in Matplotlib Plots