Changeset 3547 for issm/trunk/src/m/classes/public/plot/scaleruler.m
- Timestamp:
- 04/15/10 15:57:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/m/classes/public/plot/scaleruler.m ¶
r2830 r3547 1 function scaleruler( structure)1 function scaleruler(options) 2 2 %SCALERULER - overlay a scale ruler on current plot 3 3 % 4 4 % Usage: 5 % scaleruler(structure) 5 % scaleruler(options) 6 7 %get options 8 structure=getfieldvalue(options,'scaleruler'); 9 fontsize=getfieldvalue(options,'fontsize',16); 6 10 7 11 %Go through structure and fill missing arguments … … 28 32 xt=Bu(1); 29 33 yt=Bu(2)+2*widthscale; 30 text(xt,yt,num2str(Tick),'FontSize', 13,'FontWeight','b');34 text(xt,yt,num2str(Tick),'FontSize',fontsize,'FontWeight','b'); 31 35 32 36 %loope over the patches … … 52 56 yt=Bu(2)+2*widthscale; 53 57 if i~=numberofticks-1, 54 text(xt,yt,num2str(round_ice(Tick/1000,3)),'FontSize', 13,'FontWeight','b');58 text(xt,yt,num2str(round_ice(Tick/1000,3)),'FontSize',fontsize,'FontWeight','b'); 55 59 end 56 60 end 57 text(xt,yt,[num2str(round_ice(Tick/1000,3)) ' km'],'FontSize', 13,'FontWeight','b');61 text(xt,yt,[num2str(round_ice(Tick/1000,3)) ' km'],'FontSize',fontsize,'FontWeight','b');
Note:
See TracChangeset
for help on using the changeset viewer.