@@ -1769,9 +1769,10 @@ def set_xbound(self, lower=None, upper=None):
17691769
17701770 def get_xlim (self ):
17711771 """
1772- Get the x-axis range [*xmin*, *xmax*]
1772+ Get the x-axis range as a length 2 attay [*xmin*, *xmax*]
17731773 """
1774- return tuple (self .viewLim .intervalx )
1774+ # # copy of the viewlim array to avoid modify inplace surprises
1775+ return self .viewLim .intervalx .copy ()
17751776
17761777 def set_xlim (self , xmin = None , xmax = None , emit = True , ** kwargs ):
17771778 """
@@ -1781,7 +1782,7 @@ def set_xlim(self, xmin=None, xmax=None, emit=True, **kwargs):
17811782
17821783 Set the limits for the xaxis
17831784
1784- Returns the current xlimits as a length 2 tuple: [ *xmin*, *xmax*]
1785+ Returns the current xlimits as a length 2 tuple: ( *xmin*, *xmax*)
17851786
17861787 Examples::
17871788
@@ -1942,9 +1943,10 @@ def set_ybound(self, lower=None, upper=None):
19421943
19431944 def get_ylim (self ):
19441945 """
1945- Get the y-axis range [*ymin*, *ymax*]
1946+ Get the y-axis range as a length two array [*ymin*, *ymax*]
19461947 """
1947- return tuple (self .viewLim .intervaly )
1948+ # copy of the viewlim array to avoid modify inplace surprises
1949+ return self .viewLim .intervaly .copy ()
19481950
19491951 def set_ylim (self , ymin = None , ymax = None , emit = True , ** kwargs ):
19501952 """
0 commit comments