Ignore:
Timestamp:
09/25/12 15:43:03 (12 years ago)
Author:
cborstad
Message:

NEW: processdata and plot_unit for python plotting, some new plot options added, preliminary element and node plots

File:
1 edited

Legend:

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

    r13424 r13440  
    11from pairoptions import *
    22import pylab as p
    3 from checkplotoptions import *
    4 from plot_mesh import *
     3from checkplotoptions import checkplotoptions
     4from plot_mesh import plot_mesh
     5from processmesh import processmesh
     6from processdata import processdata
     7from plot_unit import plot_unit
     8from applyoptions import applyoptions
    59
    610def plot_manager(md,options,subplotwidth,nlines,ncols,i):
     
    2529
    2630                # 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
    2834                else:
    2935                        print "WARNING: '%s' is not implemented or is not a valid string for option 'data'" % data
    3036
    3137        #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..."
    3440
    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.