Changeset 5818


Ignore:
Timestamp:
09/15/10 08:41:34 (15 years ago)
Author:
Eric.Larour
Message:

Switched segmentnumbering plot into option.

Location:
issm/trunk/src/m/classes/public/plot
Files:
1 deleted
3 edited

Legend:

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

    r5616 r5818  
    3232                case 'highlightelements',
    3333                        plot_highlightelements(md,options,subplotwidth,i);
    34                         return;
    35                 case 'segmentnumbering',
    36                         plot_segmentnumbering(md,options,subplotwidth,i);
    3734                        return;
    3835                case 'qmuhistnorm',
  • issm/trunk/src/m/classes/public/plot/plot_segments.m

    r5815 r5818  
    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+1,...
    28                 num2str(md.segmentmarkers),...
    29                 'backgroundcolor',[0.8 0.9 0.8],'HorizontalAlignment','center','VerticalAlignment','middle');
     27        if strcmpi(getfieldvalue(options,'segmentnumbering','off'),'on'),
     28                text(sum(x(segments(:,1:2)),2)/2,sum(y(segments(:,1:2)),2)/2,sum(z(segments(:,1:2)),2)/2+1,...
     29                        num2str(md.segmentmarkers),...
     30                        'backgroundcolor',[0.8 0.9 0.8],'HorizontalAlignment','center','VerticalAlignment','middle');
     31        end
    3032
    3133        %display arrows pointing outward
  • issm/trunk/src/m/classes/public/plot/plotdoc.m

    r5527 r5818  
    2323disp('                  - ''elementnumbering'': numbering of elements');
    2424disp('                  - ''gridnumbering'': numbering of grids');
    25 disp('                  - ''segmentnumbering'': numbering of segments');
    2625disp('                  - ''highlightelements'': to highlight elements to highlight the element list');
    2726disp('                  - ''highlightgrids'': to highlight grids (use highlight option to enter the grid list');
     
    138137disp('       ''cdfplt'': (char, ''off'' to turn off cdf line plots)');
    139138disp('       ''cdfleg'': (char, ''off'' to turn off cdf legends)');
     139disp('       ''segmentnumbering'': (''off'' by default)');
    140140disp('       any options (except ''data'') can be followed by ''#i'' where ''i'' is the subplot number, or ''#all'' if applied to all plots');
    141141disp('  ');
Note: See TracChangeset for help on using the changeset viewer.