Changeset 6370


Ignore:
Timestamp:
10/21/10 12:33:47 (14 years ago)
Author:
Eric.Larour
Message:

changed alignment

File:
1 edited

Legend:

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

    r3547 r6370  
    77%get options
    88structure=getfieldvalue(options,'scaleruler');
    9 fontsize=getfieldvalue(options,'fontsize',16);
     9fontsize=getfieldvalue(options,'scaleruler_fontsize',16);
    1010
    1111%Go through structure and fill missing arguments
     
    3131%Text
    3232xt=Bu(1);
    33 yt=Bu(2)+2*widthscale;
    34 text(xt,yt,num2str(Tick),'FontSize',fontsize,'FontWeight','b');
     33yt=Bu(2)+widthscale;
     34text(xt,yt,num2str(Tick),'FontSize',fontsize,'FontWeight','b','HorizontalAlignment','center');
    3535
    3636%loope over the patches
     
    5454        %Text
    5555        xt=Bu(1);
    56         yt=Bu(2)+2*widthscale;
     56        yt=Bu(2)+widthscale;
    5757        if i~=numberofticks-1,
    58                 text(xt,yt,num2str(round_ice(Tick/1000,3)),'FontSize',fontsize,'FontWeight','b');
     58                text(xt,yt,num2str(round_ice(Tick/1000,3)),'FontSize',fontsize,'FontWeight','b','HorizontalAlignment','center');
    5959        end
    6060end
    61 text(xt,yt,[num2str(round_ice(Tick/1000,3)) ' km'],'FontSize',fontsize,'FontWeight','b');
     61text(xt,yt,[num2str(round_ice(Tick/1000,3)) ' km'],'FontSize',fontsize,'FontWeight','b','HorizontalAlignment','center');
Note: See TracChangeset for help on using the changeset viewer.