Changeset 6370
- Timestamp:
- 10/21/10 12:33:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/plot/scaleruler.m
r3547 r6370 7 7 %get options 8 8 structure=getfieldvalue(options,'scaleruler'); 9 fontsize=getfieldvalue(options,' fontsize',16);9 fontsize=getfieldvalue(options,'scaleruler_fontsize',16); 10 10 11 11 %Go through structure and fill missing arguments … … 31 31 %Text 32 32 xt=Bu(1); 33 yt=Bu(2)+ 2*widthscale;34 text(xt,yt,num2str(Tick),'FontSize',fontsize,'FontWeight','b' );33 yt=Bu(2)+widthscale; 34 text(xt,yt,num2str(Tick),'FontSize',fontsize,'FontWeight','b','HorizontalAlignment','center'); 35 35 36 36 %loope over the patches … … 54 54 %Text 55 55 xt=Bu(1); 56 yt=Bu(2)+ 2*widthscale;56 yt=Bu(2)+widthscale; 57 57 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'); 59 59 end 60 60 end 61 text(xt,yt,[num2str(round_ice(Tick/1000,3)) ' km'],'FontSize',fontsize,'FontWeight','b' );61 text(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.