Ignore:
Timestamp:
06/22/22 01:42:55 (3 years ago)
Author:
bdef
Message:

BUG: fixes to caxis plotting and issues with P2 elements

File:
1 edited

Legend:

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

    r26928 r27087  
    1111from plot_contour import plot_contour
    1212from plot_streamlines import plot_streamlines
     13from plot_edgeoverlay import plot_edgeoverlay
    1314
    1415
     
    156157    # {{{ ShowBasins TODO
    157158    # }}}
    158     # {{{ clim
    159     if options.exist('clim'):
    160         lims = options.getfieldvalue('clim')
    161         assert len(lims) == 2, 'error, clim should be passed as a list of length 2'
    162     elif options.exist('caxis'):
     159    # {{{ caxis
     160    if options.exist('caxis'):
    163161        lims = options.getfieldvalue('caxis')
    164162        assert len(lims) == 2, 'error, caxis should be passed as a list of length 2'
    165         options.addfielddefault('clim', lims)
     163        options.addfielddefault('caxis', lims)
    166164    else:
    167165        if len(data) > 0:
     
    192190    if options.exist('contourlevels'):
    193191        plot_contour(md, data, options, ax)
     192    # }}}
     193    # {{{ edgeoverlay
     194    if options.exist('edgeoverlay'):
     195        edgedata = options.getfieldvalue('edgeoverlay')
     196        plot_edgeoverlay(md, edgedata, options, ax)
    194197    # }}}
    195198    # {{{ wrapping TODO
Note: See TracChangeset for help on using the changeset viewer.