matplotlib.axes.Axes.autoscale
- Axes.autoscale(enable=True, axis='both', tight=None)
Autoscale the axis view to the data (toggle).
Convenience method for simple axis view autoscaling. This:
Turns autoscaling on or off (
set_autoscalex_on/ ).
Autoscale the axis view to the data (toggle).
Convenience method for simple axis view autoscaling. This:
Turns autoscaling on or off (set_autoscalex_on /
).
Ensures that view limits will get updated when needed. - As view limits are lazy-updated, this technically marks the view limits as stale.
True turns autoscaling on, False turns it off. None leaves the autoscaling state unchanged.
The axis on which to operate. (For 3D Axes, axis can also be set to 'z', and 'both' refers to all three Axes.)
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.
matplotlib.axes.Axes.autoscale