Changeset 8114
- Timestamp:
- 05/03/11 07:39:56 (14 years ago)
- Location:
- issm/trunk/src/m/model/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/m/model/plot/applyoptions.m ¶
r8107 r8114 497 497 %applay options 498 498 options=removefield(options,'text',0); 499 options=removefield(options,'title',0); 500 options=removefield(options,'xlabel',0); 501 options=removefield(options,'ylabel',0); 499 502 options=removefield(options,'inset',0); 500 503 options=removefield(options,'offsetaxispos',0); -
TabularUnified issm/trunk/src/m/model/plot/plot_mesh.m ¶
r8105 r8114 14 14 15 15 %retrieve some options 16 linewidth=getfieldvalue(options,' meshlinewidth',1);17 color=getfieldvalue(options,'meshcolor','black');16 linewidth=getfieldvalue(options,'linewidth',1); 17 edgecolor=getfieldvalue(options,'edgecolor','black'); 18 18 19 19 %plot mesh 20 20 if is2d 21 21 A=elements(:,1); B=elements(:,2); C=elements(:,3); 22 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor', color,'linewidth',linewidth);22 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 23 23 else 24 24 A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); E=elements(:,5); F=elements(:,6); 25 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor', color,'linewidth',linewidth);26 patch( 'Faces', [D E F], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor', color,'linewidth',linewidth);27 patch( 'Faces', [A B E D],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor', color,'linewidth',linewidth);28 patch( 'Faces', [B E F C],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor', color,'linewidth',linewidth);29 patch( 'Faces', [C A D F],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor', color,'linewidth',linewidth);25 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 26 patch( 'Faces', [D E F], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 27 patch( 'Faces', [A B E D],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 28 patch( 'Faces', [B E F C],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 29 patch( 'Faces', [C A D F],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 30 30 end 31 31
Note:
See TracChangeset
for help on using the changeset viewer.