matplotlib.axis.Axis.set_view_interval
-
Axis.set_view_interval(self, vmin, vmax, ignore=False)
[source] -
Set the axis view limits. This method is for internal use; Matplotlib users should typically use e.g.
set_xlim
orset_ylim
.If ignore is False (the default), this method will never reduce the preexisting view limits, only expand them if vmin or vmax are not within them. Moreover, the order of vmin and vmax does not matter; the orientation of the axis will not change.
If ignore is True, the view limits will be set exactly to
(vmin, vmax)
in that order.
Examples using matplotlib.axis.Axis.set_view_interval
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.3.3/api/_as_gen/matplotlib.axis.Axis.set_view_interval.html