Autoscale the axis view to the data (toggle).
Convenience method for simple axis view autoscaling. It turns autoscaling on or off, and then, if autoscaling for either axis is on, it performs the autoscaling on the specified axis or Axes.
True turns autoscaling on, False turns it off. None leaves the autoscaling state unchanged.
Which axis to operate on.
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
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.axes.Axes.autoscale.html