Changeset 21725


Ignore:
Timestamp:
05/19/17 14:09:09 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: put on top text and bar

File:
1 edited

Legend:

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

    r16052 r21725  
    2626%If only one tick, just draw a rectangle
    2727if numberofticks==1,
    28         text(x0+lengthscale/2,y0+2*widthscale,2,[num2str(lengthscale*unitscale/1000) ' km'],...
     28        t=text(x0+lengthscale/2,y0+2*widthscale,2,[num2str(lengthscale*unitscale/1000) ' km'],...
    2929                'FontSize',fontsize,'FontWeight',fontweight,'Color',fontcolor,'HorizontalAlignment','center','VerticalAlignment','baseline');
    30         patch([x0 x0+lengthscale x0+lengthscale x0],[y0 y0 y0+widthscale y0+widthscale],2*ones(1,4),fontcolor,'Edgecolor',fontcolor);
     30        if ~verLessThan('matlab', '8.3')
     31                set(t,'Layer','front');
     32        end
     33        p=patch([x0 x0+lengthscale x0+lengthscale x0],[y0 y0 y0+widthscale y0+widthscale],2*ones(1,4),fontcolor,'Edgecolor',fontcolor);
    3134else
    3235        %initialize some coordinates
Note: See TracChangeset for help on using the changeset viewer.