1 | % CARTEMONDE1 trace les contours des continents et les frontiÚres |
---|
2 | |
---|
3 | %+ |
---|
4 | % |
---|
5 | % .. _cartemonde1.m: |
---|
6 | % |
---|
7 | % ============= |
---|
8 | % cartemonde1.m |
---|
9 | % ============= |
---|
10 | % |
---|
11 | % --------------------------------------------------- |
---|
12 | % trace les contours des continents et les frontiÚres |
---|
13 | % --------------------------------------------------- |
---|
14 | % |
---|
15 | % DESCRIPTION |
---|
16 | % =========== |
---|
17 | % |
---|
18 | % trace les contours des continents et les frontiÚres. |
---|
19 | % |
---|
20 | % Data of continents and borders are in :file:`monde.mat`. |
---|
21 | % |
---|
22 | % à appeler à la fin de votre programme |
---|
23 | % |
---|
24 | % Ajuster la fenêtre spatiale au besoin avec la |
---|
25 | % fonction AXIS([longmin longmax latmin latmax]) |
---|
26 | % |
---|
27 | % EXAMPLES |
---|
28 | % ======== |
---|
29 | % |
---|
30 | % .. code-block:: matlab |
---|
31 | % |
---|
32 | % cartemonde; |
---|
33 | % axis ([40 100 0 50]); |
---|
34 | % |
---|
35 | % SEE ALSO |
---|
36 | % ======== |
---|
37 | % |
---|
38 | % :ref:`cartemonde.m` |
---|
39 | % |
---|
40 | % TODO |
---|
41 | % ==== |
---|
42 | % |
---|
43 | % update borders or replace usage of this module by one provided by matlab |
---|
44 | % |
---|
45 | % EVOLUTIONS |
---|
46 | % ========== |
---|
47 | % |
---|
48 | % $Id$ |
---|
49 | % |
---|
50 | %- |
---|
51 | |
---|
52 | % chargement fond carte |
---|
53 | % (contenu : conti, npconti, fronti, npfronti) |
---|
54 | |
---|
55 | status=load('monde.mat','conti','npconti','fronti','npfronti'); |
---|
56 | conti=status.conti; |
---|
57 | npconti=status.npconti; |
---|
58 | fronti=status.fronti; |
---|
59 | npfronti=status.npfronti; |
---|
60 | clear status; |
---|
61 | |
---|
62 | % trace fond de carte continents |
---|
63 | [nll,ncc]=size(npconti); |
---|
64 | aa=1; |
---|
65 | bb=0; |
---|
66 | hold on; |
---|
67 | for 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); |
---|
73 | end |
---|
74 | |
---|
75 | % traçage des frontiÚres |
---|
76 | [nnl,nnc]=size(npfronti); |
---|
77 | aa=1; |
---|
78 | bb=0; |
---|
79 | hold on; |
---|
80 | for iii=1:nnl, |
---|
81 | aa=aa+bb; |
---|
82 | cc=npfronti(iii)+(aa-1); |
---|
83 | % gg=plot (fronti(aa:cc,1),fronti(aa:cc,2)); |
---|
84 | % set (gg,'Color',[0.5 0.5 0.5],'LineWidth',0.4) |
---|
85 | bb=npfronti(iii); |
---|
86 | end |
---|