Changeset 20921


Ignore:
Timestamp:
07/15/16 05:48:33 (9 years ago)
Author:
bdef
Message:

NEW: adding default values to plot_contour

File:
1 edited

Legend:

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

    r20144 r20921  
    3434        # retrieve necessary options
    3535        levels=options.getfieldvalue('contourlevels')
    36         colors=options.getfieldvalue('contourcolors')
    3736        norm=options.getfieldvalue('colornorm')
    38         linestyles=options.getfieldvalue('contourlinestyles')
    39         linewidths=options.getfieldvalue('contourlinewidths')
     37        colors=options.getfieldvalue('contourcolors','y')
     38        linestyles=options.getfieldvalue('contourlinestyles','-')
     39        linewidths=options.getfieldvalue('contourlinewidths',1)
    4040
    4141        ax.tricontour(x,y,elements,data,levels,colors=colors,norm=norm,linestyles=linestyles,linewidths=linewidths)
Note: See TracChangeset for help on using the changeset viewer.