Version 3.2.2
matplotlib
  • Installation
  • Documentation
  • Examples
  • Tutorials
  • Contributing

Navigation

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

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(locator)[source]¶

Set the locator of the major ticker.

Parameters:locator : Locator

Examples using matplotlib.axis.Axis.set_major_locator¶

../../_images/sphx_glr_filled_step_thumb.png

Hatch-filled histograms¶

../../_images/sphx_glr_timeline_thumb.png

Creating a timeline with lines, dates, and text¶

../../_images/sphx_glr_date_thumb.png

Date tick labels¶

../../_images/sphx_glr_anatomy_thumb.png

Anatomy of a figure¶

../../_images/sphx_glr_surface3d_thumb.png

3D surface (color map)¶

../../_images/sphx_glr_surface3d_3_thumb.png

3D surface (checkerboard)¶

../../_images/sphx_glr_scales_thumb.png

Scales¶

../../_images/sphx_glr_mri_with_eeg_thumb.png

MRI With EEG¶

../../_images/sphx_glr_skewt_thumb.png

SkewT-logP diagram: using transforms and custom projections¶

../../_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_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_colormaps_thumb.png

Choosing Colormaps in Matplotlib¶

../../_images/sphx_glr_text_intro_thumb.png

Text in Matplotlib Plots¶

© Copyright 2020 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2018 The Matplotlib development team.
Last updated on Jun 22, 2020. Created using Sphinx 2.4.3. Doc version 3.2.2.