Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

loadrec.py

from matplotlib import mlab
from pylab import figure, show

a = mlab.csv2rec('data/msft.csv')
a.sort()
print a.dtype

fig = figure()
ax = fig.add_subplot(111)
ax.plot(a.date, a.adj_close, '-')
fig.autofmt_xdate()

mlab.rec2excel(a, 'test.xls', colnum=4)
show()

Generated by  Doxygen 1.6.0   Back to index