Changeset 5814
- Timestamp:
- 09/15/10 07:47:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/plot_segments.m
r4330 r5814 25 25 h2=patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','green','EdgeColor','black'); 26 26 27 text(sum(x(segments(:,1:2)),2)/2,sum(y(segments(:,1:2)),2)/2,sum(z(segments(:,1:2)),2)/2,... 28 num2str(md.segmentmarkers),... 29 'backgroundcolor',[0.8 0.9 0.8],'HorizontalAlignment','center','VerticalAlignment','middle'); 30 27 31 %display arrows pointing outward 28 32 xstart=mean(x(segments(:,1:end-1)),2); … … 35 39 q=quiver(xstart,ystart,xend-xstart,yend-ystart); hold on; 36 40 h3=plot(xstart,ystart,'r*'); 41 42 37 43 else 38 44 error('plot_segments: 3d plot of segments not supported yet!');
Note:
See TracChangeset
for help on using the changeset viewer.