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

Skip to content

Commit b557ba8

Browse files
committed
use safe isnan for rec2gtk
svn path=/trunk/matplotlib/; revision=8619
1 parent 6713af0 commit b557ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/gtktools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def __call__(self, column):
158158
val = model.get_value(thisiter, self.i)
159159
try: val = float(val.strip().rstrip('%'))
160160
except ValueError: pass
161-
if npy.isnan(val): val = npy.inf # force nan to sort uniquely
161+
if mlab.safe_isnan(val): val = npy.inf # force nan to sort uniquely
162162
dsu.append((val, rownum))
163163
dsu.sort()
164164
if not self.num%2: dsu.reverse()

0 commit comments

Comments
 (0)