Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit61c05d2

Browse files
committed
Add units kwarg to xbound
1 parent4172c77 commit61c05d2

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
returnself.xaxis.get_inverted()
30823082

3083-
defget_xbound(self):
3083+
defget_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
ifleft<right:
31003100
returnleft,right
31013101
else:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp