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

Commite40a25a

Browse files
committed
Allow unit registry to look up 2D-like input
1 parent8c5bf1e commite40a25a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎lib/matplotlib/units.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ def get_converter(self, x):
187187
pass
188188
try:# If cache lookup fails, look up based on first element...
189189
first=cbook._safe_first_finite(x)
190+
ifnp.iterable(first):
191+
# Support 2D input (including lists of lists)
192+
first=cbook._safe_first_finite(first)
190193
except (TypeError,StopIteration):
191194
pass
192195
else:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp