Changeset 7651
- Timestamp:
- 03/15/11 14:50:32 (14 years ago)
- Location:
- issm/trunk/src/m/model/plot
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/plot/applyoptions.m
r7547 r7651 69 69 end 70 70 end 71 72 if exist(options,'z'), 73 axis square; 74 end 75 71 76 72 77 %xlim -
issm/trunk/src/m/model/plot/plot_manager.m
r7644 r7651 173 173 %plot unit 174 174 h=plot_unit(x,y,z,elements,data2,is2d,datatype,options); 175 175 176 176 177 %apply all options -
issm/trunk/src/m/model/plot/plot_unit.m
r7098 r7651 21 21 pos=find(~isnan(data)); %needed for element on water 22 22 if is2d, 23 A=elements(pos,1); B=elements(pos,2); C=elements(pos,3); 24 h=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData', data(pos),'FaceColor','flat','EdgeColor',edgecolor); 23 A=elements(pos,1); B=elements(pos,2); C=elements(pos,3); h=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData', data(pos),'FaceColor','flat','EdgeColor',edgecolor); 25 24 else 26 25 A=elements(pos,1); B=elements(pos,2); C=elements(pos,3); D=elements(pos,4); E=elements(pos,5); F=elements(pos,6); -
issm/trunk/src/m/model/plot/processmesh.m
r7028 r7651 26 26 y2d=md.y2d; 27 27 end 28 29 z_field=getfieldvalue(options,'z',md.z); 30 if ischar(z_field), 31 z=md.(z_field); 32 elseif isnumeric(z_field), 33 z=z_field; 34 else 28 35 z=md.z; 29 z2d=md.z2d; 30 elements2d=md.elements2d; 31 elements=md.elements; 32 elements_type2d=md.elements_type2d; 36 end 37 38 39 z2d=md.z2d; 40 elements2d=md.elements2d; 41 elements=md.elements; 42 elements_type2d=md.elements_type2d; 33 43 34 44 %is it a 2d plot?
Note:
See TracChangeset
for help on using the changeset viewer.