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

Skip to content

Commit 61c05d2

Browse files
committed
Add units kwarg to xbound
1 parent 4172c77 commit 61c05d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3080,7 +3080,7 @@ def xaxis_inverted(self):
30803080
"""
30813081
return self.xaxis.get_inverted()
30823082

3083-
def get_xbound(self):
3083+
def get_xbound(self, units=True):
30843084
"""
30853085
Return the lower and upper x-axis bounds, in increasing order.
30863086
@@ -3095,7 +3095,7 @@ def get_xbound(self):
30953095
get_xlim, set_xlim
30963096
invert_xaxis, xaxis_inverted
30973097
"""
3098-
left, right = self.get_xlim()
3098+
left, right = self.get_xlim(units=units)
30993099
if left < right:
31003100
return left, right
31013101
else:

0 commit comments

Comments
 (0)