source: trunk/src/cartemonde1.m @ 16

Last change on this file since 16 was 16, checked in by pinsard, 15 years ago

remove trailing blanks, split lines with multiple statements

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1% CARTEMONDE1 trace les contours des continents et les frontieres
2
3%+
4% module
5% ======
6%
7% trace les contours des continents et les frontieres
8%
9% DESCRIPTION
10% ===========
11%
12% trace les contours des continents et les frontieres.
13%
14% Data of continents and borders are in ``monde.mat``
15%
16% A appeler à la fin de votre programme
17%
18% Ajuster la fenetre spatiale au besoin avec la
19%  fonction AXIS([longmin longmax latmin latmax])
20%
21% EXAMPLES
22% ========
23%
24% ::
25%
26% >> ............ (début de votre programme)
27% >> cartemonde;
28% >> axis ([40 100 0 50]);
29%
30% SEE ALSO
31% ========
32%
33% cartemonde.m_
34%
35% .. _cartemonde.m : cartemonde.m.html
36%
37% TODO
38% ====
39%
40% update borders or replace usage of this module by one provided by matlab
41%
42% EVOLUTIONS
43% ==========
44%
45% $Id$
46%
47%-
48
49% chargement fond carte
50% (contenu : conti, npconti, fronti, npfronti)
51
52load monde.mat
53
54
55% trace fond de carte continents
56[nll,ncc]=size(npconti);
57aa=1;
58bb=0;
59hold on;
60for qi=1:nll,
61  aa=aa+bb;
62  cc=npconti(qi)+(aa-1);
63       cco=plot (conti(aa:cc,1),conti(aa:cc,2),'k');
64       set (cco,'LineWidth',1);          % default=0.5;
65  bb=npconti(qi);
66end
67
68%  tracage des frontieres
69 [nnl,nnc]=size(npfronti);
70 aa=1;
71 bb=0;
72 hold on;
73 for iii=1:nnl,
74   aa=aa+bb;
75   cc=npfronti(iii)+(aa-1);
76%        gg=plot (fronti(aa:cc,1),fronti(aa:cc,2));
77%        set (gg,'Color',[0.5 0.5 0.5],'LineWidth',0.4)
78   bb=npfronti(iii);
79 end
80
Note: See TracBrowser for help on using the repository browser.