Changeset 13836


Ignore:
Timestamp:
10/26/12 15:53:47 (12 years ago)
Author:
Eric.Larour
Message:

NEW: curvedarrow routine + changes to add more options.

Location:
issm/trunk-jpl/src/m/plot
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/applyoptions.m

    r13646 r13836  
    265265if exist(options,'northarrow'),
    266266        northarrow(getfieldvalue(options,'northarrow'));
     267end
     268
     269%curved arrow
     270if exist(options,'curvedarrow'),
     271        curvedoptions=getfieldvalue(options,'curvedarrow');
     272        curvedarrow(curvedoptions{:});
    267273end
    268274
  • issm/trunk-jpl/src/m/plot/colormaps/getcolormap.m

    r13154 r13836  
    2121
    2222if strcmpi(map,'Ala'),
    23         map = jet;
     23        map = jet(256);
    2424        map = map(128:end,:);
    2525elseif strcmpi(map,'redblue'),
  • issm/trunk-jpl/src/m/plot/plot_riftrelvel.m

    r13828 r13836  
    1515end
    1616options=addfielddefault(options,'scaling',2);
     17
     18%markersize:
     19markersize=getfieldvalue(options,'markersize',1);
    1720
    1821%recover vx and vy:
     
    3740subplot(nlines,ncols,index);
    3841hold on
    39 
    40 %plot mesh boundaries
    41 for i=1:size(md.mesh.segments,1),
    42         plot(x(md.mesh.segments(i,1:2)),y(md.mesh.segments(i,1:2)),'k-');
    43 end
    4442
    4543%plot rifts vel
     
    8179                %if penetration is negative, plot in black, positive, plot in red;: ie: if rift is closing, black, if rift is opening, red.
    8280                if(penetration>0),
    83                         p2=plot(x(penaltypairs(j,1)) ,y(penaltypairs(j,1)),'*'); set(p2,'Color',[140 140 140]/255);
     81                        p2=plot(x(penaltypairs(j,1)) ,y(penaltypairs(j,1)),'*','MarkerSize',markersize); set(p2,'Color',[140 140 140]/255);
    8482                        isp2=1;
    8583                else
    86                         p1=plot(x(penaltypairs(j,1)) ,y(penaltypairs(j,1)),'k*');
     84                        p1=plot(x(penaltypairs(j,1)) ,y(penaltypairs(j,1)),'k*','MarkerSize',markersize);
    8785                        isp1=1;
    8886                end
     
    9088
    9189        %point out the tips
    92         h2=plot(x(md.rifts.riftstruct(i).tips(1)),y(md.rifts.riftstruct(i).tips(1)),'g*');
    93         plot(x(md.rifts.riftstruct(i).tips(2)),y(md.rifts.riftstruct(i).tips(2)),'g*');
     90        h2=plot(x(md.rifts.riftstruct(i).tips(1)),y(md.rifts.riftstruct(i).tips(1)),'g*','MarkerSize',markersize);
     91        plot(x(md.rifts.riftstruct(i).tips(2)),y(md.rifts.riftstruct(i).tips(2)),'g*','MarkerSize',markersize);
    9492        segments=md.rifts.riftstruct(i).segments(:,1:2);
    9593end
Note: See TracChangeset for help on using the changeset viewer.