Changeset 8181
- Timestamp:
- May 24, 2011, 12:45:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/documentation/user_manual/examples/harbour.py
r7808 r8181 47 47 domain.set_name('harbour') # Output to harbour.sww 48 48 domain.set_datadir('.') # Use current directory for output 49 domain.set_quantities_to_be_stored(['stage',# Store all conserved quantities 50 'xmomentum', 51 'ymomentum']) 49 50 domain.quantities_to_be_stored = {'elevation': 1, 51 'stage': 2, 52 'xmomentum': 2, 53 'ymomentum': 2} 54 52 55 53 56 … … 127 130 use_cache = True) 128 131 129 from pylab import plot, xlabel, ylabel, title, ion, close, savefig, figure 132 from pylab import plot, xlabel, ylabel, title, ion, close, savefig, figure, show 130 133 ion() 131 134 … … 155 158 156 159 figure(1) 157 plot(gaugex [:loc],maxw[:loc],'g-')160 plot(gaugex,maxw,'g-') 158 161 xlabel('x') 159 162 ylabel('stage') 160 163 title('Maximum stage for gauge line') 164 show() 161 165 savefig('max_stage') 162 166
Note: See TracChangeset
for help on using the changeset viewer.