Changeset 8181


Ignore:
Timestamp:
May 24, 2011, 12:45:53 PM (13 years ago)
Author:
steve
Message:

Jakir found a problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/documentation/user_manual/examples/harbour.py

    r7808 r8181  
    4747domain.set_name('harbour')                  # Output to harbour.sww
    4848domain.set_datadir('.')                     # Use current directory for output
    49 domain.set_quantities_to_be_stored(['stage',# Store all conserved quantities
    50                                     'xmomentum',
    51                                     'ymomentum'])   
     49
     50domain.quantities_to_be_stored = {'elevation': 1,
     51                                        'stage': 2,
     52                                        'xmomentum': 2,
     53                                        'ymomentum': 2}
     54 
    5255
    5356
     
    127130                  use_cache = True)
    128131
    129 from pylab import plot, xlabel, ylabel, title, ion, close, savefig, figure
     132from pylab import plot, xlabel, ylabel, title, ion, close, savefig, figure, show
    130133ion()
    131134
     
    155158
    156159figure(1)
    157 plot(gaugex[:loc],maxw[:loc],'g-')
     160plot(gaugex,maxw,'g-')
    158161xlabel('x')
    159162ylabel('stage')
    160163title('Maximum stage for gauge line')
     164show()
    161165savefig('max_stage')
    162166
Note: See TracChangeset for help on using the changeset viewer.