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

Skip to content

Commit 794b4ed

Browse files
committed
Allow unit registry to look up 2D-like input
1 parent 4a7504d commit 794b4ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/units.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def get_converter(self, x):
192192
else:
193193
# ... and avoid infinite recursion for pathological iterables for
194194
# which indexing returns instances of the same iterable class.
195-
if type(first) is not type(x):
195+
if isinstance(first, list) or type(first) is not type(x):
196196
return self.get_converter(first)
197197
return None
198198

0 commit comments

Comments
 (0)