Last change
on this file since 2263 was
2229,
checked in by steve, 19 years ago
|
Moved directories into production and development parent directories
|
File size:
543 bytes
|
Rev | Line | |
---|
[2229] | 1 | |
---|
| 2 | filename = 'lwru1_IC.txt' |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | #x = [] |
---|
| 6 | #w = [] |
---|
| 7 | #fid = open(filename) |
---|
| 8 | #for line in fid.readlines(): |
---|
| 9 | # fields = line.split() |
---|
| 10 | # assert len(fields) == 2, '%s' %fields |
---|
| 11 | # x.append( float(fields[0]) ) |
---|
| 12 | # w.append( float(fields[1]) ) |
---|
| 13 | # |
---|
| 14 | #print 'X', x, len(x) |
---|
| 15 | #print 'W', w, len(w) |
---|
| 16 | |
---|
| 17 | from pylab import plot, load, ion, ioff, draw, show, sin, hold |
---|
| 18 | |
---|
| 19 | X = load(filename) |
---|
| 20 | ion() |
---|
| 21 | plot(X[:,0], X[:,1]) |
---|
| 22 | #draw() |
---|
| 23 | |
---|
| 24 | hold(False) |
---|
| 25 | for i in range(100): |
---|
| 26 | print i |
---|
| 27 | plot(X[:,0], X[:,1] + sin(i/10.0)) |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | show() |
---|
| 32 | print 'end' |
---|
| 33 | |
---|
| 34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.