[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.autoscale.html [Back]  [Original]

matplotlib.pyplot.autoscale — Matplotlib 3.11.2 documentation
Back to top
Search the docs ...:

matplotlib.pyplot.autoscale#

matplotlib.pyplot.autoscale(enable=True, axis='both', tight=None)[source]#

Autoscale the axis view to the data (toggle).

Convenience method for simple axis view autoscaling. This:

  • Turns autoscaling on or off (set_autoscalex_on / set_autoscaley_on).

  • Ensures that view limits will get updated when needed. - As view limits are lazy-updated, this technically marks the view limits as stale.

Parameters:
enablebool or None, default: True

True turns autoscaling on, False turns it off. None leaves the autoscaling state unchanged.

axis{'both', 'x', 'y'}, default: 'both'

The axis on which to operate. (For 3D Axes, axis can also be set to 'z', and 'both' refers to all three Axes.)

tightbool or None, default: None

If True, first set the margins to zero. Then, this argument is forwarded to autoscale_view (regardless of its value); see the description of its behavior there.

Notes

Note

This is the pyplot wrapper for axes.Axes.autoscale.


Web Proxy Viewer  |  New URL  |  Original Page