Menu

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

Download this file

12 lines (9 with data), 214 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
from matplotlib.mlab import csv2rec
from pylab import figure, show
a = csv2rec('data/msft.csv')
print a.dtype
fig = figure()
ax = fig.add_subplot(111)
ax.plot(a.date, a.adj_close, '-')
fig.autofmt_xdate()
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.