Changeset 13771


Ignore:
Timestamp:
10/20/12 14:39:50 (12 years ago)
Author:
Mathieu Morlighem
Message:

BUG: matplotlib might not have been installed, startup.py should not error out (for NR)

Location:
issm/trunk-jpl/src/m/plot
Files:
5 edited

Legend:

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

    r13440 r13771  
    1 import pylab as p
     1
     2try:
     3        import pylab as p
     4except ImportError:
     5        print "could not import pylab, matplotlib has not been installed, no plotting capabilities enabled"
    26
    37def applyoptions(md,data,options):
  • issm/trunk-jpl/src/m/plot/plot_manager.py

    r13440 r13771  
     1
     2try:
     3        import pylab as p
     4except ImportError:
     5        print "could not import pylab, matplotlib has not been installed, no plotting capabilities enabled"
     6
    17from pairoptions import *
    2 import pylab as p
    38from checkplotoptions import checkplotoptions
    49from plot_mesh import plot_mesh
  • issm/trunk-jpl/src/m/plot/plot_mesh.py

    r13440 r13771  
    1 import pylab as p
     1
     2try:
     3        import pylab as p
     4except ImportError:
     5        print "could not import pylab, matplotlib has not been installed, no plotting capabilities enabled"
     6
    27from processmesh import processmesh
    38from applyoptions import applyoptions
  • issm/trunk-jpl/src/m/plot/plot_unit.py

    r13440 r13771  
    1 import pylab as p
     1
     2try:
     3        import pylab as p
     4except ImportError:
     5        print "could not import pylab, matplotlib has not been installed, no plotting capabilities enabled"
    26
    37def plot_unit(x,y,z,elements,data,is2d,isplanet,datatype,options):
  • issm/trunk-jpl/src/m/plot/plotmodel.py

    r13440 r13771  
    1 import pylab as p
     1
     2try:
     3        import pylab as p
     4except ImportError:
     5        print "could not import pylab, matplotlib has not been installed, no plotting capabilities enabled"
     6
    27#from pairoptions import *
    38from plotoptions import plotoptions
Note: See TracChangeset for help on using the changeset viewer.