Changeset 1969


Ignore:
Timestamp:
08/26/09 16:52:36 (16 years ago)
Author:
Mathieu Morlighem
Message:

minor

File:
1 edited

Legend:

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

    r1740 r1969  
    4141
    4242if is2d
    43         %plot section value
    44         subplot(width,width,index1)
    45         plot(s,data_s)
    4643
    4744        %Show Section if requested by user
     
    7370                view(2)
    7471        end
     72
     73        %plot section value
     74        subplot(width,width,index1)
     75        plot(s,data_s)
     76
    7577else
    7678        %plot section value
    7779        %if user requested view2: 2d plot with curvilinear coordinate
    7880        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');
    8281
    8382                %Show Section if requested by user
     
    109108                        view(2)
    110109                end
    111         else
     110
    112111                subplot(width,width,index1)
    113112                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
    116116
    117117                %Show Section if requested by user
     
    143143                        view(2)
    144144                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
    145151        end
    146152end
Note: See TracChangeset for help on using the changeset viewer.