Changeset 13440 for issm/trunk-jpl/src/m/plot/plot_manager.py
- Timestamp:
- 09/25/12 15:43:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_manager.py
r13424 r13440 1 1 from pairoptions import * 2 2 import pylab as p 3 from checkplotoptions import * 4 from plot_mesh import * 3 from checkplotoptions import checkplotoptions 4 from plot_mesh import plot_mesh 5 from processmesh import processmesh 6 from processdata import processdata 7 from plot_unit import plot_unit 8 from applyoptions import applyoptions 5 9 6 10 def plot_manager(md,options,subplotwidth,nlines,ncols,i): … … 25 29 26 30 # convert string to lower case for a case-insensitive comparison 27 if data.lower()=='mesh': plot_mesh(md,options,nlines,ncols,i) 31 if data.lower()=='mesh': 32 plot_mesh(md,options,nlines,ncols,i) 33 return 28 34 else: 29 35 print "WARNING: '%s' is not implemented or is not a valid string for option 'data'" % data 30 36 31 37 #elif data in vars(md): 32 else:33 print "'data' not a string, plotting model properties yet to be implemented..."38 #else: 39 #print "'data' not a string, plotting model properties yet to be implemented..." 34 40 35 41 #Overlay plot 42 43 #Gridded plot 44 45 #Section plot 46 47 #Profile plot 48 49 #process data and model 50 x,y,z,elements,is2d,isplanet=processmesh(md,data,options) 51 data2,datatype=processdata(md,data,options) 52 53 #standard plot 54 p.subplot(nlines,ncols,i) 55 56 #plot unit 57 plot_unit(x,y,z,elements,data2,is2d,isplanet,datatype,options) 58 59 #apply all options 60 applyoptions(md,data2,options) 61 62 #ground overlay on kml plot_unit
Note:
See TracChangeset
for help on using the changeset viewer.