Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a96422e

Browse files
committed
axis.py: clarify docstring for set_view_interval. Closes issue #118.
Longer term, set_view interval could be deprecated and renamed, but this is very low priority.
1 parent 39db8f1 commit a96422e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

lib/matplotlib/axis.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,11 @@ def set_view_interval(self, vmin, vmax, ignore=False):
17241724
"""
17251725
If *ignore* is *False*, the order of vmin, vmax
17261726
does not matter; the original axis orientation will
1727-
be preserved.
1727+
be preserved. In addition, the view limits can be
1728+
expanded, but will not be reduced. This method is
1729+
for mpl internal use; for normal use, see
1730+
:meth:`~matplotlib.axes.Axes.set_xlim`.
1731+
17281732
"""
17291733
if ignore:
17301734
self.axes.viewLim.intervalx = vmin, vmax
@@ -1986,7 +1990,11 @@ def set_view_interval(self, vmin, vmax, ignore=False):
19861990
"""
19871991
If *ignore* is *False*, the order of vmin, vmax
19881992
does not matter; the original axis orientation will
1989-
be preserved.
1993+
be preserved. In addition, the view limits can be
1994+
expanded, but will not be reduced. This method is
1995+
for mpl internal use; for normal use, see
1996+
:meth:`~matplotlib.axes.Axes.set_ylim`.
1997+
19901998
"""
19911999
if ignore:
19922000
self.axes.viewLim.intervaly = vmin, vmax

0 commit comments

Comments
 (0)