Skip to content

Commit edfdf89

Browse files
committed
added michaels unit detection optimization for arrays
svn path=/trunk/matplotlib/; revision=6166
1 parent 214576d commit edfdf89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/units.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def get_converter(self, x):
135135

136136
for thisx in x:
137137
converter = self.get_converter( thisx )
138-
if converter: break
138+
return converter
139139

140140
#DISABLED self._cached[idx] = converter
141141
return converter

0 commit comments

Comments
 (0)