Changeset 15490


Ignore:
Timestamp:
07/15/13 13:02:49 (12 years ago)
Author:
cborstad
Message:

need to call show() for plotmodel calls in scripts (e.g. runme files)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plotmodel.py

    r14260 r15490  
    5151                #Create figure
    5252                #plots will be visible by default if ipython is run in interactive mode (invoked by ipython --pylab)
     53                #UNLESS plotmodel is called within a script (e.g. a runme.py file)
    5354                #handling the 'visible' option will need some check on whether ipython is currently in interactive or non-interactive mode
    5455
     
    6566                #except StandardError:
    6667                #       print 'error in plot_manager'
     68                p.show()
    6769        else:
    6870                raise StandardError('plotmodel error message: no output data found.')
Note: See TracChangeset for help on using the changeset viewer.