source: trunk/src/cartemonde.m @ 65

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

correction of usage of print function, fix side effect of load function

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