Ignore:
Timestamp:
04/15/10 15:57:48 (15 years ago)
Author:
Mathieu Morlighem
Message:

colorbar legend on top

File:
1 edited

Legend:

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

    r2830 r3547  
    1 function scaleruler(structure)
     1function scaleruler(options)
    22%SCALERULER - overlay a scale ruler on current plot
    33%
    44%   Usage:
    5 %      scaleruler(structure)
     5%      scaleruler(options)
     6
     7%get options
     8structure=getfieldvalue(options,'scaleruler');
     9fontsize=getfieldvalue(options,'fontsize',16);
    610
    711%Go through structure and fill missing arguments
     
    2832xt=Bu(1);
    2933yt=Bu(2)+2*widthscale;
    30 text(xt,yt,num2str(Tick),'FontSize',13,'FontWeight','b');
     34text(xt,yt,num2str(Tick),'FontSize',fontsize,'FontWeight','b');
    3135
    3236%loope over the patches
     
    5256        yt=Bu(2)+2*widthscale;
    5357        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');
    5559        end
    5660end
    57 text(xt,yt,[num2str(round_ice(Tick/1000,3)) ' km'],'FontSize',13,'FontWeight','b');
     61text(xt,yt,[num2str(round_ice(Tick/1000,3)) ' km'],'FontSize',fontsize,'FontWeight','b');
Note: See TracChangeset for help on using the changeset viewer.