Changeset 5814 for issm/trunk


Ignore:
Timestamp:
09/15/10 07:47:03 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added numbering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/plot/plot_segments.m

    r4330 r5814  
    2525        h2=patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','green','EdgeColor','black');
    2626
     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
    2731        %display arrows pointing outward
    2832        xstart=mean(x(segments(:,1:end-1)),2);
     
    3539        q=quiver(xstart,ystart,xend-xstart,yend-ystart); hold on;
    3640        h3=plot(xstart,ystart,'r*');
     41
     42
    3743else
    3844        error('plot_segments: 3d plot of segments not supported yet!');
Note: See TracChangeset for help on using the changeset viewer.