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

Skip to content

Commit 72a2543

Browse files
committed
purge pyexcelerator refs from docstrings, etc
svn path=/branches/v0_98_5_maint/; revision=6859
1 parent 89c03d2 commit 72a2543

3 files changed

Lines changed: 4 additions & 14 deletions

File tree

examples/pylab_examples/loadrec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
ax.plot(a.date, a.adj_close, '-')
1111
fig.autofmt_xdate()
1212

13-
# if you have pyExcelerator installed, you can output excel
13+
# if you have xlwt installed, you can output excel
1414
#import mpl_toolkits.exceltools as exceltools
1515
#exceltools.rec2excel(a, 'test.xls', colnum=4)
1616
show()

lib/mpl_toolkits/exceltools.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Some io tools for excel -- requires pypyExcelerator
2+
Some io tools for excel -- requires xlwt
33
44
Example usage:
55
@@ -22,13 +22,7 @@
2222
import copy
2323
import numpy as np
2424

25-
try:
26-
import xlwt as excel
27-
except ImportError:
28-
try:
29-
import pyExcelerator as excel
30-
except ImportError:
31-
raise ImportError('You must install xlwt or pyExcelterator to use the exceltools')
25+
import xlwt as excel
3226

3327
import matplotlib.cbook as cbook
3428
import matplotlib.mlab as mlab
@@ -65,7 +59,7 @@ def xlformat_factory(format):
6559

6660
def rec2excel(r, ws, formatd=None, rownum=0, colnum=0, nanstr='NaN', infstr='Inf'):
6761
"""
68-
save record array r to excel pyExcelerator worksheet ws
62+
save record array r to excel xlwt worksheet ws
6963
starting at rownum. if ws is string like, assume it is a
7064
filename and save to it
7165

lib/mpl_toolkits/gtktools.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,6 @@ def foreach(model, path, iter, selected):
298298

299299
def rec2gtk(r, formatd=None, rownum=0, autowin=True):
300300
"""
301-
save record array r to excel pyExcelerator worksheet ws
302-
starting at rownum. if ws is string like, assume it is a
303-
filename and save to it
304-
305301
formatd is a dictionary mapping dtype name -> mlab.Format instances
306302
307303
This function creates a SortedStringsScrolledWindow (derived

0 commit comments

Comments
 (0)