Changeset 9288
- Timestamp:
- 08/11/11 13:17:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/plot/northarrow.m
r1 r9288 13 13 elseif length(structure)==4 14 14 structure(5)=structure(3)/10; %default width =length/10 15 elseif length(structure)>5 15 elseif length(structure)==5 16 structure(6)=16; %default fontsize 17 elseif length(structure)>6 16 18 error('plotmodel error message: to many input arguments for northarrow: [x0 y0 length [ratio [width]]]'); 17 19 end … … 23 25 ratio=structure(4); 24 26 width=structure(5); 27 fontsize=structure(6); 25 28 26 29 %Figure out angle to point towards north … … 71 74 xN=max([A(1) D(1) E(1) F(1) G(1)])+ratio/3*lengtharrow; 72 75 yN=mean([A(2) F(2) H(2)]); 73 text(xN,yN,'North','FontSize', 16,'FontWeight','b');76 text(xN,yN,'North','FontSize',fontsize,'FontWeight','b');
Note:
See TracChangeset
for help on using the changeset viewer.