Changeset 27087 for issm/trunk-jpl/src/m/plot/applyoptions.py
- Timestamp:
- 06/22/22 01:42:55 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/applyoptions.py
r26928 r27087 11 11 from plot_contour import plot_contour 12 12 from plot_streamlines import plot_streamlines 13 from plot_edgeoverlay import plot_edgeoverlay 13 14 14 15 … … 156 157 # {{{ ShowBasins TODO 157 158 # }}} 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'): 163 161 lims = options.getfieldvalue('caxis') 164 162 assert len(lims) == 2, 'error, caxis should be passed as a list of length 2' 165 options.addfielddefault('c lim', lims)163 options.addfielddefault('caxis', lims) 166 164 else: 167 165 if len(data) > 0: … … 192 190 if options.exist('contourlevels'): 193 191 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) 194 197 # }}} 195 198 # {{{ wrapping TODO
Note:
See TracChangeset
for help on using the changeset viewer.