Menu

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

Download this file

13 lines (10 with data), 220 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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()
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.