Changeset 21355


Ignore:
Timestamp:
11/10/16 02:26:03 (8 years ago)
Author:
bdef
Message:

NEW:adding elementnumbering

Location:
issm/trunk-jpl/src/m/plot
Files:
1 added
2 edited

Legend:

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

    r21283 r21355  
    88from plot_mesh import plot_mesh
    99from plot_BC import plot_BC
     10from plot_elementnumbering import plot_elementnumbering
    1011from processmesh import processmesh
    1112from processdata import processdata
     
    5657                options.addfielddefault('ylim',[min(md.mesh.y),max(md.mesh.y)])
    5758        # }}}
    58         # {{{ dealing with special plot (mesh for now)
     59        # {{{ dealing with special plot
    5960        if isinstance(data,(str,unicode)):
    6061                if data=='mesh':
     
    6465                elif data=='BC':
    6566                        plot_BC(md,options,fig,ax)
     67                        return
     68                elif data=='elementnumbering':
     69                        plot_elementnumbering(md,options,fig,ax)
    6670                        return
    6771                elif data=='none':
  • issm/trunk-jpl/src/m/plot/plotdoc.py

    r21289 r21355  
    77        pydata={'quiver':' quiver plot give data and a vector array [Vx,Vy]',
    88                                        'mesh':' draw mesh using trisurf',
    9                                         'BC':' this will draw all the boundary conditions (Dirichlet and Neumann).'}
     9                                        'BC':' this will draw all the boundary conditions (Dirichlet and Neumann).',
     10                                        'elementnumbering':' numbering of elements (matlab indices)'}
    1011        TODOdata={'basal_drag':' plot the basal drag on the bed (in kPa) based on the velocity in md.initialization',
    1112                                'basal_dragx or basal_dragy' :' plot a component of the basal drag on the bed (in kPa)',
     
    1718                                'driving_stress':' plot the driving stress (in kPa)',
    1819                                'elements_type':' model used for each element',
    19                                 'elementnumbering':' numbering of elements',
    2020                                'vertexnumbering':' numbering of vertices',
    2121                                'highlightelements':' to highlight elements to highlight the element list',
     
    6060                                                 'fontweight':" fontweight for the title 'normal', 'bold'",
    6161                                                 'fontcolor':" TODO",
     62                                                 'highlight':" highlights certain nodes or elements when using 'nodenumbering' or 'elementnumbering' or 'highlightnodes ' or 'highlightelements' option",
    6263                                                 'title':" subplot title (string)",
    6364                                                 'xlim':" limits of X axis (all subplots) (ex: [0,500])",
     
    107108                                         'insety':" [min(y) max(y)] where min(y) and max(y) are values determining the inset content",
    108109                                         'insetpos':" [x,y,dx,dy] where x,y,dx and dy are within [0 1]",
    109                                          'highlight':" highlights certain nodes or elements when using 'nodenumbering' or 'elementnumbering' or 'highlightnodes ' or 'highlightelements' option",
    110110                                         'resolution':" resolution used by section value (array of type [horizontal_resolution vertical_resolution])",
    111111                                         'showsection':" show section used by 'sectionvalue' (string 'on' or a number of labels)",
Note: See TracChangeset for help on using the changeset viewer.