Changeset 1969
- Timestamp:
- 08/26/09 16:52:36 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/plot_section.m
r1740 r1969 41 41 42 42 if is2d 43 %plot section value44 subplot(width,width,index1)45 plot(s,data_s)46 43 47 44 %Show Section if requested by user … … 73 70 view(2) 74 71 end 72 73 %plot section value 74 subplot(width,width,index1) 75 plot(s,data_s) 76 75 77 else 76 78 %plot section value 77 79 %if user requested view2: 2d plot with curvilinear coordinate 78 80 if (~isnan(options_structure.view) & options_structure.view==2 ) 79 subplot(width,width,index1)80 A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4);81 patch( 'Faces', [A B C D], 'Vertices', [s z zeros(length(s),1)],'FaceVertexCData',data_s,'FaceColor','interp','EdgeColor','none');82 81 83 82 %Show Section if requested by user … … 109 108 view(2) 110 109 end 111 else 110 112 111 subplot(width,width,index1) 113 112 A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); 114 patch( 'Faces', [A B C D], 'Vertices', [x y z],'FaceVertexCData',data_s,'FaceColor','interp','EdgeColor','none'); 115 view(3) 113 patch( 'Faces', [A B C D], 'Vertices', [s z zeros(length(s),1)],'FaceVertexCData',data_s,'FaceColor','interp','EdgeColor','none'); 114 115 else 116 116 117 117 %Show Section if requested by user … … 143 143 view(2) 144 144 end 145 146 subplot(width,width,index1) 147 A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); 148 patch( 'Faces', [A B C D], 'Vertices', [x y z],'FaceVertexCData',data_s,'FaceColor','interp','EdgeColor','none'); 149 view(3) 150 145 151 end 146 152 end
Note:
See TracChangeset
for help on using the changeset viewer.