Changeset 17706
- Timestamp:
- 04/09/14 21:28:35 (11 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/applyoptions.py
r17698 r17706 156 156 if options.exist('clim'): 157 157 lims=options.getfieldvalue('clim') 158 assert len(lims)==2, 'error, clim should be passed as a list of length 2' 158 159 elif options.exist('caxis'): 159 160 lims=options.getfieldvalue('caxis') 161 assert len(lims)==2, 'error, caxis should be passed as a list of length 2' 160 162 options.addfielddefault('clim',lims) 161 163 else: 162 lims=[min(data.flatten()),max(data.flatten())] 163 if len(lims)!=2: 164 print 'WARNING: clim/caxis should be passed as a list of length 2' 164 if len(data)>0: lims=[data.min(),data.max()] 165 165 #}}} 166 166 -
issm/trunk-jpl/src/m/plot/plot_mesh.py
r16097 r17706 1 2 1 try: 3 2 import pylab as p
Note:
See TracChangeset
for help on using the changeset viewer.