source: trunk/src/cartemonde.m @ 91

Last change on this file since 91 was 91, checked in by pinsard, 10 years ago

fix thanks to coding rules

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1% CARTEMONDE trace les contours des continents
2
3%+
4%
5% .. _cartemonde.m:
6%
7% ============
8% cartemonde.m
9% ============
10%
11% ---------------------------------
12% trace les contours des continents
13% ---------------------------------
14%
15% DESCRIPTION
16% ===========
17%
18% trace les contours des continents.
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:`cartemonde1.m`
40%
41% TODO
42% ====
43%
44% update borders or replace usage of this module by one provided by matlab
45%
46% add path to monde.mat
47%
48% EVOLUTIONS
49% ==========
50%
51% $Id$
52%
53%-
54% chargement fond carte
55% (contenu : conti, npconti, fronti, npfronti)
56
57status=load('monde.mat','conti','npconti');
58conti=status.conti;
59npconti=status.npconti;
60clear status;
61
62% trace fond de carte continents
63[nll,ncc]=size(npconti);
64aa=1;
65bb=0;
66hold on;
67for qi=1:nll,
68  aa=aa+bb;
69  cc=npconti(qi)+(aa-1);
70       cco=plot (conti(aa:cc,1),conti(aa:cc,2),'k');
71       set (cco,'LineWidth',1);          % default=0.5;
72  bb=npconti(qi);
73end
Note: See TracBrowser for help on using the repository browser.