8000 Fix sign of infstr in exceltools.rec2exel · pelson/matplotlib@4df78fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 4df78fa

Browse files
dalerWeatherGod
authored andcommitted
Fix sign of infstr in exceltools.rec2exel
1 parent b3f676c commit 4df78fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/exceltools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def rec2excel(r, ws, formatd=None, rownum=0, colnum=0, nanstr='NaN', infstr='Inf
124124
ws.write(rownum, colnum+i, nanstr)
125125
elif mlab.safe_isinf(val):
126126
sgn = np.sign(val)
127-
if sgn<0: s = infstr
127+
if sgn>0: s = infstr
128128
else: s = '-%s'%infstr
129129
ws.write(rownum, colnum+i, s)
130130
elif format.xlstyle is None:

0 commit comments

Comments
 (0)
0