matplotlib.pyplot.locator_params(axis='both', tight=None, **kwargs)
[source]
Control behavior of major tick locators.
Because the locator is involved in autoscaling, autoscale_view
is called automatically after the parameters are changed.
Parameters: |
|
---|---|
Other Parameters: |
|
When plotting small subplots, one might want to reduce the maximum number of ticks and use tight bounds, for example:
ax.locator_params(tight=True, nbins=4)
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.locator_params.html