matplotlib.pyplot.
locator_params
(axis='both', tight=None, **kwargs)¶Control behavior of tick locators.
Parameters: | axis : [‘both’ | ‘x’ | ‘y’], optional
tight : bool or None, optional
|
---|---|
Other Parameters: | |
**kw :
Typically one might want to reduce the maximum number of ticks and use tight bounds when plotting small subplots, for example::
Because the locator is involved in autoscaling, :meth:`autoscale_view` is called automatically after the parameters are changed. This presently works only for the :class:`~matplotlib.ticker.MaxNLocator` used by default on linear axes, but it may be generalized. |