Changeset 6751


Ignore:
Timestamp:
12/17/10 17:42:36 (14 years ago)
Author:
Eric.Larour
Message:

Added plot_riftnumbering: to identify segments in each rift.
Fixed plot_riftrelvel bugs.

Location:
issm/trunk/src/m/model/plot
Files:
1 added
2 edited

Legend:

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

    r6287 r6751  
    8484                        plot_riftvel(md,options,nlines,ncols,i);
    8585                        return;
     86                case 'riftnumbering',
     87                        plot_riftnumbering(md,options,nlines,ncols,i);
     88                        return;
     89
    8690                case 'rifts',
    8791                        plot_rifts(md,options,nlines,ncols,i);
  • issm/trunk/src/m/model/plot/plot_riftrelvel.m

    r6287 r6751  
    7676                penetration=(vx2-vx1)*normal(1)+(vy2-vy1)*normal(2);
    7777                %if penetration is negative, plot in black, positive, plot in red;: ie: if rift is closing, black, if rift is opening, red.
    78                 %if(penetration>0),
    79                 %       p2=plot(x(penaltypairs(j,1)) ,y(penaltypairs(j,1)),'*'); set(p2,'Color',[140 140 140]/255);
    80                 %       isp2=1;
    81                 %else
    82                 %       p1=plot(x(penaltypairs(j,1)) ,y(penaltypairs(j,1)),'k*');
    83                 %       isp1=1;
    84                 %end
     78                if(penetration>0),
     79                        p2=plot(x(penaltypairs(j,1)) ,y(penaltypairs(j,1)),'*'); set(p2,'Color',[140 140 140]/255);
     80                        isp2=1;
     81                else
     82                        p1=plot(x(penaltypairs(j,1)) ,y(penaltypairs(j,1)),'k*');
     83                        isp1=1;
     84                end
    8585        end
    8686
    8787        %point out the tips
    88         %h2=plot(x(md.rifts(i).tips(1)),y(md.rifts(i).tips(1)),'g*');
    89         %plot(x(md.rifts(i).tips(2)),y(md.rifts(i).tips(2)),'g*');
    90         %segments=md.rifts(i).segments(:,1:2);
     88        h2=plot(x(md.rifts(i).tips(1)),y(md.rifts(i).tips(1)),'g*');
     89        plot(x(md.rifts(i).tips(2)),y(md.rifts(i).tips(2)),'g*');
     90        segments=md.rifts(i).segments(:,1:2);
    9191end
    9292%legend
Note: See TracChangeset for help on using the changeset viewer.