Changeset 843


Ignore:
Timestamp:
06/08/09 14:17:57 (16 years ago)
Author:
Mathieu Morlighem
Message:

nicer scale ruler

File:
1 edited

Legend:

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

    r1 r843  
    4040        %pathes
    4141        if flag==-1
    42                 p=patch([Ad(1) Bd(1) Bu(1) Au(1)],[Ad(2) Bd(2) Bu(2) Au(2)],'Black');
     42                p=patch([Ad(1) Bd(1) Bu(1) Au(1)],[Ad(2) Bd(2) Bu(2) Au(2)],'Black','FaceAlpha',0.5);
    4343        else
    44                 p=patch([Ad(1) Bd(1) Bu(1) Au(1)],[Ad(2) Bd(2) Bu(2) Au(2)],'White');
     44                p=patch([Ad(1) Bd(1) Bu(1) Au(1)],[Ad(2) Bd(2) Bu(2) Au(2)],'White','FaceAlpha',0.3);
    4545        end
    4646
     
    5151        xt=Bu(1);
    5252        yt=Bu(2)+widthscale;
    53         text(xt,yt,num2str(Tick/1000),'FontSize',13,'FontWeight','b');
     53        if i~=numberofticks-1,
     54                text(xt,yt,num2str(Tick/1000),'FontSize',13,'FontWeight','b');
     55        end
    5456end
    55 
    56 %Text
    57 xt=Bu(1)+unitlength;
    58 yt=Bu(2);
    59 text(xt,yt,'km','FontSize',16,'FontWeight','b');
     57text(xt,yt,[num2str(Tick/1000) ' km'],'FontSize',13,'FontWeight','b');
Note: See TracChangeset for help on using the changeset viewer.