Permalink
Browse files

Fix sign of infstr in exceltools.rec2exel

  • Loading branch information...
daler committed Jan 30, 2013
1 parent a4be3f2 commit 4d8d1cb1c2a0ab379a8435b4403ae0b29b8a9993
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mpl_toolkits/exceltools.py
@@ -124,7 +124,7 @@ def rec2excel(r, ws, formatd=None, rownum=0, colnum=0, nanstr='NaN', infstr='Inf
ws.write(rownum, colnum+i, nanstr)
elif mlab.safe_isinf(val):
sgn = np.sign(val)
- if sgn<0: s = infstr
+ if sgn>0: s = infstr
else: s = '-%s'%infstr
ws.write(rownum, colnum+i, s)
elif format.xlstyle is None:

0 comments on commit 4d8d1cb

Please sign in to comment.