You are reading an old version of the documentation (v3.2.0). For the latest version see
https://matplotlib.org/stable/
Version 3.2.0
Fork me on GitHub
Installation
Documentation
Examples
Tutorials
Contributing
Navigation
index
modules
|
next
|
previous
|
home
|
contents
»
API Overview
»
matplotlib.axis
»
Related Topics
Documentation overview
API Overview
matplotlib.axis
Previous:
matplotlib.axis.XAxis.set_major_formatter
Next:
matplotlib.axis.XAxis.set_minor_formatter
Show Page Source
matplotlib.axis.XAxis.set_major_locator
¶
XAxis.
set_major_locator
(
self
,
locator
)
¶
Set the locator of the major ticker.
Parameters:
locator
Locator