source: issm/oecreview/Archive/15392-16133/ISSM-15489-15490.diff

Last change on this file was 16134, checked in by Mathieu Morlighem, 12 years ago

Added Archive/15392-16133

File size: 874 bytes
RevLine 
[16134]1Index: ../trunk-jpl/src/m/plot/plotmodel.py
2===================================================================
3--- ../trunk-jpl/src/m/plot/plotmodel.py (revision 15489)
4+++ ../trunk-jpl/src/m/plot/plotmodel.py (revision 15490)
5@@ -50,6 +50,7 @@
6
7 #Create figure
8 #plots will be visible by default if ipython is run in interactive mode (invoked by ipython --pylab)
9+ #UNLESS plotmodel is called within a script (e.g. a runme.py file)
10 #handling the 'visible' option will need some check on whether ipython is currently in interactive or non-interactive mode
11
12 #if figsize specified
13@@ -64,5 +65,6 @@
14 plot_manager(options.list[i].getfieldvalue('model',md),options.list[i],subplotwidth,nlines,ncols,i+1)
15 #except StandardError:
16 # print 'error in plot_manager'
17+ p.show()
18 else:
19 raise StandardError('plotmodel error message: no output data found.')
Note: See TracBrowser for help on using the repository browser.