source: inundation/validation/Incomplete/LWRU1/icplot.py @ 2116

Last change on this file since 2116 was 2116, checked in by steve, 19 years ago
File size: 543 bytes
Line 
1
2filename = '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
17from pylab import plot, load, ion, ioff, draw, show, sin, hold
18
19X = load(filename)
20ion()
21plot(X[:,0], X[:,1])
22#draw()
23
24hold(False)
25for i in range(100):
26    print i
27    plot(X[:,0], X[:,1] + sin(i/10.0))
28
29
30
31show()
32print 'end'
33
34
Note: See TracBrowser for help on using the repository browser.