Ignore:
Timestamp:
10/15/16 14:33:24 (8 years ago)
Author:
cborstad
Message:

CHG: push options parsing to the expdisp function to facilitate adding new options (patch fill to come), and to streamline applyoptions

File:
1 edited

Legend:

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

    r21254 r21276  
    248248        # {{{ expdisp
    249249        if options.exist('expdisp'):
    250                 filename=options.getfieldvalue('expdisp')
    251                 style=options.getfieldvalue('expstyle','k')
    252                 linewidth=options.getfieldvalue('explinewidth',1)
    253                 for i in xrange(len(filename)):
    254                         filenamei=filename[i]
    255                         stylei=style[i]
    256                         if type(linewidth)==list:
    257                                 linewidthi=linewidth[i]
    258                         else:
    259                                 linewidthi=linewidth
    260                         expdisp(filenamei,ax,linestyle=stylei,linewidth=linewidthi,unitmultiplier=options.getfieldvalue('unit',1))
     250            expdisp(ax,options)
    261251        # }}}
    262252        # {{{ area TODO
Note: See TracChangeset for help on using the changeset viewer.