source: inundation/ga/storm_surge/validation/LWRU1/icplot.py @ 1627

Last change on this file since 1627 was 1627, checked in by ole, 19 years ago

Setting up for tank validation

File size: 570 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(100000):
26    print i*i
27    plot(X[:,0], X[:,1] + sin(i/10.0))   
28
29
30
31show()
32print 'end'   
33
34
35
Note: See TracBrowser for help on using the repository browser.