Menu

[r4647]: / branches / transforms / examples / plotfile_demo.py  Maximize  Restore  History

Download this file

23 lines (13 with data), 467 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
from pylab import plotfile, show
fname = 'data/msft.csv'
# test 1; use ints
plotfile(fname, (0,5,6))
# test 2; use names
plotfile(fname, ('date', 'volume', 'adj_close'))
# test 3; use semilogy for volume
plotfile(fname, ('date', 'volume', 'adj_close'), plotfuncs={'volume': 'semilogy'})
# test 4; use semilogy for volume
plotfile(fname, (0,5,6), plotfuncs={5:'semilogy'})
# test 5; use bar for volume
plotfile(fname, (0,5,6), plotfuncs={5:'bar'})
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.