matplotlib

Travis-CI:

This Page

matplotlib.axes.Axes.autoscale_view

Axes.autoscale_view(tight=None, scalex=True, scaley=True)

Autoscale the view limits using the data limits. You can selectively autoscale only a single axis, e.g., the xaxis by setting scaley to False. The autoscaling preserves any axis direction reversal that has already been done.

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.