Changeset 10284


Ignore:
Timestamp:
10/25/11 08:56:31 (14 years ago)
Author:
Mathieu Morlighem
Message:

Added NaN option for plotting BC

Location:
issm/trunk/src/m/model/plot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/plot/plotdoc.m

    r9771 r10284  
    121121disp('       ''textrotation'':  same as standard ''Rotation'' matlab option applied to text, use a cell of strings if more than one');
    122122disp('       ''mask'': list of flags of size numberofnodes or numberofelements. Only ''true'' values are plotted ');
     123disp('       ''nan'': value assigned to NaNs (convenient when plotting BC)');
    123124disp('       ''partitionedges'': ''off'' by default. overlay plot of partition edges');
    124125disp('       ''log'': value of log');
  • issm/trunk/src/m/model/plot/processdata.m

    r9733 r10284  
    4242datasize=size(data);
    4343
     44%Process NaN if any (do not now before mask is applied)
     45if exist(options,'nan')
     46        data(find(isnan(data)))=getfieldvalue(options,'nan',0);
     47end
    4448%non patch processing
    4549if datatype~=4 & datatype~=5,
Note: See TracChangeset for help on using the changeset viewer.