source: trunk/src/cartemonde1.m @ 86

Last change on this file since 86 was 86, checked in by pinsard, 14 years ago

fix some links in manuals

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