Changeset 8115 for issm/trunk


Ignore:
Timestamp:
05/03/11 07:42:29 (14 years ago)
Author:
Mathieu Morlighem
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/plot/plot_elementstype.m

    r8106 r8115  
    2323        p1=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',HutterApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    2424        %MacAyeal element
    25         posH=find(data==MacAyealApproximationEnum);
    26         A=elements(posH,1); B=elements(posH,2); C=elements(posH,3);
     25        posM=find(data==MacAyealApproximationEnum);
     26        A=elements(posM,1); B=elements(posM,2); C=elements(posM,3);
    2727        p2=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',MacAyealApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    2828        %Pattyn element
    29         posH=find(data==PattynApproximationEnum);
    30         A=elements(posH,1); B=elements(posH,2); C=elements(posH,3);
     29        posP=find(data==PattynApproximationEnum);
     30        A=elements(posP,1); B=elements(posP,2); C=elements(posP,3);
    3131        p3=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',PattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    3232        %MacAyealPattyn element
    33         posH=find(data==MacAyealPattynApproximationEnum);
    34         A=elements(posH,1); B=elements(posH,2); C=elements(posH,3);
     33        posMP=find(data==MacAyealPattynApproximationEnum);
     34        A=elements(posMP,1); B=elements(posMP,2); C=elements(posMP,3);
    3535        p5=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',MacAyealPattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    3636        %Stokes elements
     
    5050        A=elements(posNONE,1); B=elements(posNONE,2); C=elements(posNONE,3);
    5151        p9=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData',NoneApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    52         legend([p1 p2 p3 p5 p6 p7 p8 p9],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','MacAyealPattyn''s elements','Stokes''s elements','MacAyealStokes''s elements','PattynStokes''s elements','No element');
     52
     53        legend([p1 p2 p3 p5 p6 p7 p8 p9],...
     54                'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements',...
     55                'MacAyealPattyn''s elements','Stokes''s elements','MacAyealStokes''s elements','PattynStokes''s elements','None element');
    5356
    5457else
     
    7881        patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', PattynApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    7982        %Stokes elements
    80         save data data
    8183        posS=find(data==StokesApproximationEnum);
    8284        A=elements(posS,1); B=elements(posS,2); C=elements(posS,3); D=elements(posS,4); E=elements(posS,5); F=elements(posS,6);
     
    118120        patch( 'Faces', [B E F C],'Vertices', [x y z],'CData', NoneApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    119121        patch( 'Faces', [C A D F],'Vertices', [x y z],'CData', NoneApproximationEnum,'FaceColor','flat','EdgeColor',edgecolor);
    120         legend([p1 p2 p3 p4 p5 p6 p7 p8],'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','Stokes''s elements','MacAyealPattyn''s elements','PattynStokes''s elements','MacAyealStokes''s elements','None elements');
     122
     123        legend([p1 p2 p3 p4 p5 p6 p7 p8],...
     124                'Hutter''s elements','MacAyeal''s elements','Pattyn''s elements','Stokes''s elements',...
     125                'MacAyealPattyn''s elements','PattynStokes''s elements','MacAyealStokes''s elements','None elements');
    121126end
    122127
Note: See TracChangeset for help on using the changeset viewer.