Changeset 23780
- Timestamp:
- 03/08/19 13:34:05 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/scaleruler.m
r23138 r23780 28 28 if numberofticks==1, 29 29 t=text(x0+lengthscale/2,y0+2*widthscale,2,[num2str(lengthscale*unitscale/1000) ' km'],... 30 'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','center','VerticalAlignment','b aseline');31 if ~verLessThan('matlab', '8. 3')30 'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','center','VerticalAlignment','bottom'); 31 if ~verLessThan('matlab', '8.4') 32 32 set(t,'Layer','front'); 33 33 end … … 45 45 xt=Bu(1); 46 46 yt=Bu(2)+widthscale; 47 text(xt,yt,2,num2str(Tick),'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','center','VerticalAlignment','b aseline');47 text(xt,yt,2,num2str(Tick),'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','center','VerticalAlignment','bottom'); 48 48 49 49 %loope over the patches … … 69 69 yt=Bu(2)+widthscale; 70 70 if i~=numberofticks-1, 71 text(xt,yt,2,num2str(round_ice(Tick/1000,3)),'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','center','VerticalAlignment','b aseline');71 text(xt,yt,2,num2str(round_ice(Tick/1000,3)),'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','center','VerticalAlignment','bottom'); 72 72 end 73 73 end 74 text(xt,yt,2,num2str(round_ice(Tick/1000,3)),'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','center','VerticalAlignment','b aseline');74 text(xt,yt,2,num2str(round_ice(Tick/1000,3)),'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','center','VerticalAlignment','bottom'); 75 75 % add leading spaces depending on length of label string 76 76 str=' km'; … … 78 78 str=[' ' str]; 79 79 end 80 text(xt,yt,2,str,'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','left','VerticalAlignment','b aseline');80 text(xt,yt,2,str,'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','left','VerticalAlignment','bottom'); 81 81 end
Note:
See TracChangeset
for help on using the changeset viewer.