matplotlib.axis.Axis.set_view_interval#
- Axis.set_view_interval(vmin,vmax,ignore=False)[source]#
Set the axis view limits. This method is for internal use; Matplotlibusers should typically use e.g.
set_xlimorset_ylim.Ifignore is False (the default), this method will never reduce thepreexisting view limits, only expand them ifvmin orvmax are notwithin them. Moreover, the order ofvmin andvmax does not matter;the orientation of the axis will not change.
Ifignore is True, the view limits will be set exactly to
(vmin,vmax)in that order.
On this page