Changeset 9288


Ignore:
Timestamp:
08/11/11 13:17:49 (14 years ago)
Author:
Eric.Larour
Message:

added fontsize option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/plot/northarrow.m

    r1 r9288  
    1313elseif length(structure)==4
    1414        structure(5)=structure(3)/10; %default width =length/10
    15 elseif length(structure)>5
     15elseif length(structure)==5
     16        structure(6)=16; %default fontsize
     17elseif length(structure)>6
    1618        error('plotmodel error message: to many input arguments for northarrow: [x0 y0 length [ratio [width]]]');
    1719end
     
    2325ratio=structure(4);
    2426width=structure(5);
     27fontsize=structure(6);
    2528
    2629%Figure out angle to point towards north
     
    7174xN=max([A(1) D(1) E(1) F(1) G(1)])+ratio/3*lengtharrow;
    7275yN=mean([A(2) F(2) H(2)]);
    73 text(xN,yN,'North','FontSize',16,'FontWeight','b');
     76text(xN,yN,'North','FontSize',fontsize,'FontWeight','b');
Note: See TracChangeset for help on using the changeset viewer.