mpl_toolkits.mplot3d.axes3d.Axes3D.autoscale_view Axes3D.autoscale_view(tight=None, scalex=True, scaley=True, scalez=True) Autoscale the view limits using the data limits. See for full documentation. Because this function applies to 3D Axes, it also takes a argument.