Menu

[r8597]: / branches / closed / transforms / examples / loadrec.py  Maximize  Restore  History

Download this file

15 lines (11 with data), 261 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.