Changeset 16325
- Timestamp:
- 10/08/13 08:08:56 (11 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/applyoptions.m
r16051 r16325 49 49 50 50 %view 51 if md.mesh.dimension==3& ~exist(options,'layer'),51 if strcmp(meshtype(md.mesh),'3D') & ~exist(options,'layer'), 52 52 view(getfieldvalue(options,'view',3)); 53 53 else … … 60 60 eval(['axis ' getfieldvalue(options,'axis')]); 61 61 else 62 if ((md.mesh.dimension==2) | exist(options,'layer')),62 if strcmpi(meshtype(md.mesh),'2Dhorizontal') | exist(options,'layer'), 63 63 axis tight equal; 64 64 else -
issm/trunk-jpl/src/m/plot/processdata.m
r13730 r16325 15 15 if (iscell(data) | isempty(data) | length(data)==0 | (length(data)==1 & ~isstruct(data) & isnan(data))), 16 16 error('plotmodel error message: data provided is empty'); 17 end 18 19 %Process NaN if any (do not know before mask is applied) 20 if exist(options,'nan') 21 data(find(isnan(data)))=getfieldvalue(options,'nan',0); 22 end 23 24 %special case for mesg 2dvertical 25 if strcmp(meshtype(md.mesh),'2Dvertical'), 26 [data datatype] = processdata(md.mesh,md,data,options); 27 return; 17 28 end 18 29 … … 51 62 datasize=size(data); 52 63 53 %Process NaN if any (do not know before mask is applied)54 if exist(options,'nan')55 data(find(isnan(data)))=getfieldvalue(options,'nan',0);56 end57 64 %non patch processing 58 65 if datatype~=4 & datatype~=5, -
issm/trunk-jpl/src/m/plot/processmesh.m
r13730 r16325 13 13 if md.mesh.numberofvertices==md.mesh.numberofelements 14 14 error(['plot error message: the number of elements is the same as the number of nodes...']); 15 end 16 17 %special case for mesg 2dvertical 18 if strcmp(meshtype(md.mesh),'2Dvertical'), 19 [x y z elements is2d isplanet] = processmesh(md.mesh,options); 20 return; 15 21 end 16 22
Note:
See TracChangeset
for help on using the changeset viewer.