Changeset 19493


Ignore:
Timestamp:
08/14/15 01:57:15 (10 years ago)
Author:
cborstad
Message:

CHG: added option to add line(s) to colorbar at specifically defined levels

File:
1 edited

Legend:

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

    r19462 r19493  
    237237                locs=npy.arange(lims[0],lims[1]+1,options.getfieldvalue('colorbarlines'))
    238238                cb.add_lines(locs,['k' for i in range(len(locs))],npy.ones_like(locs))
     239            if options.exist('colorbarlineatvalue'):
     240                locs=options.getfieldvalue('colorbarlineatvalue')
     241                colors=options.getfieldvalue('colorbarlineatvaluecolor',['k' for i in range (len(locs))])
     242                widths=options.getfieldvalue('colorbarlineatvaluewidth',npy.ones_like(locs))
     243                cb.add_lines(locs,colors,widths)
    239244            if options.exist('colorbartitle'):
    240245                if options.exist('colorbartitlepad'):
Note: See TracChangeset for help on using the changeset viewer.