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: |
|
Examples
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)