matplotlib.axes.Axes.autoscale_view
True
tight=True
not
If False and rcParams["axes.autolimit_mode"] (default: 'data') is 'round_numbers', then
after expansion by the margins, further expand the axis limits
using the axis major locator.
If None (the default), reuse the value set in the previous call to
autoscale_view (the initial value is False, but the default style
sets rcParams["axes.autolimit_mode"] (default: 'data') to 'data', in which case this
behaves like True).
scalex : bool, default: TrueWhether to autoscale the x-axis.
scaley : bool, default: TrueWhether to autoscale the y-axis.
Notes
The autoscaling preserves any preexisting axis direction reversal.
The data limits are not updated automatically when artist data are
changed after the artist has been added to an Axes instance. In that
case, use matplotlib.axes.Axes.relim() prior to calling
autoscale_view.