comparison plotss.py @ 39:c6089f1ecc75

Use DataFile properly..
author Daniel O'Connor <darius@dons.net.au>
date Wed, 28 Sep 2011 12:31:23 +0930
parents 3d2306e39700
children 3c01bd3f2786
comparison
equal deleted inserted replaced
38:7d76b1d70096 39:c6089f1ecc75
5 import numpy 5 import numpy
6 import pylab 6 import pylab
7 import sys 7 import sys
8 8
9 def doplot(fname): 9 def doplot(fname):
10 dfile = DataFile(fname) 10 dfile = datafile.DataFile(fname)
11 11
12 xdata = dfile.freqs / 1e6 12 xdata = dfile.freqs / 1e6
13 ydata = dfile.powers 13 ydata = dfile.powers
14 pylab.title("Tag \'" + dfile['TAG'] + "\' at " + dfile['TIMESTAMP']) 14 pylab.title("Tag \'" + dfile['TAG'] + "\' at " + dfile['TIMESTAMP'])
15 pylab.xlabel("Frequency (MHz)") 15 pylab.xlabel("Frequency (MHz)")