Changeset 17617
- Timestamp:
- 04/01/14 10:37:26 (11 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plotmodel.py
r17502 r17617 24 24 figurenumber=options.figurenumber 25 25 numberofplots=options.numberofplots 26 27 #get hold 28 hold=options.list[0].getfieldvalue('hold',False) 26 29 27 30 #if nlines and ncols specified, then bypass … … 52 55 #handling the 'visible' option will need some check on whether ipython is currently in interactive or non-interactive mode 53 56 54 #clear any previous plot window55 p.clf()57 if not hold: 58 p.clf() 56 59 57 60 #if figsize specified -
issm/trunk-jpl/src/m/plot/processdata.py
r17597 r17617 41 41 42 42 #process NaN's if any 43 if options.exist('nan'): 44 data[npy.isnan(data)]=options.getfieldvalue('nan',0) 43 nanfill=options.getfieldvalue('nan',0) 44 if npy.any(npy.isnan(data)): 45 data[npy.isnan(data)]=nanfill 46 print "WARNING: nan's treated as zeros by default. Change using pairoption 'nan',nan_fill_value in plotmodel call" 45 47 46 48 #non-patch processing
Note:
See TracChangeset
for help on using the changeset viewer.