1 | %INITFIG initialise qqes caractéristiques d'un dessin |
---|
2 | |
---|
3 | %+ |
---|
4 | % module |
---|
5 | % ====== |
---|
6 | % |
---|
7 | % ``initfig`` |
---|
8 | % |
---|
9 | % DESCRIPTION |
---|
10 | % =========== |
---|
11 | % |
---|
12 | % ++ |
---|
13 | % |
---|
14 | % ``initfig`` initialise qqes caractéristiques d'un dessin : |
---|
15 | % - la taille A4 |
---|
16 | % |
---|
17 | % EXAMPLES |
---|
18 | % ======== |
---|
19 | % |
---|
20 | % :: |
---|
21 | % |
---|
22 | % >> tpacpandreg_startup |
---|
23 | % >> initfig |
---|
24 | % |
---|
25 | % SEE ALSO |
---|
26 | % ======== |
---|
27 | % |
---|
28 | % tpacpandreg_startup.m_ |
---|
29 | % |
---|
30 | % .. _tpacpandreg_startup.m : tpacpandreg_startup.m.html |
---|
31 | % |
---|
32 | % TODO |
---|
33 | % ==== |
---|
34 | % |
---|
35 | % improve description |
---|
36 | % |
---|
37 | % check in octave next releases ( > 3.0.2) new feature |
---|
38 | % |
---|
39 | % EVOLUTIONS |
---|
40 | % ========== |
---|
41 | % |
---|
42 | % $Id$ |
---|
43 | % |
---|
44 | % - fplod 2009-08-25T16:41:34Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
45 | % |
---|
46 | % * ajout pour octave 3.2 (uniquement sous |
---|
47 | % /usr/local_linux/octave/64/3.2.2/bin/octave donc dedale) |
---|
48 | % |
---|
49 | % - fplod 2009-08-17T12:39:51Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
50 | % |
---|
51 | % * add header |
---|
52 | % * add octave warning |
---|
53 | % |
---|
54 | %- |
---|
55 | % |
---|
56 | if (run_octave == 0) |
---|
57 | set(gcf,'Units','normalized'); |
---|
58 | set(gcf,'position',[0.1 0.08,0.5,0.8]) |
---|
59 | set(gcf,'PaperType', 'a4letter'); |
---|
60 | set(gcf,'PaperUnits','normalized'); |
---|
61 | set(gcf,'PaperPosition',[0,0,1,1]); |
---|
62 | else |
---|
63 | switch OCTAVE_VERSION |
---|
64 | case {'3.0.2'} |
---|
65 | warning('www : octave 3.0.2 can not initialise Units, position, PaperType PaperUnits PaperPosition'); |
---|
66 | case {'3.2.2'} |
---|
67 | set(gcf,'Units','normalized'); |
---|
68 | set(gcf,'position',[0.1 0.08,0.5,0.8]) |
---|
69 | set(gcf,'PaperType', 'a4'); |
---|
70 | set(gcf,'PaperUnits','normalized'); |
---|
71 | set(gcf,'PaperPosition',[0,0,1,1]); |
---|
72 | otherwise |
---|
73 | warning('www : do no know about octave initialise Units, position, PaperType PaperUnits PaperPosition'); |
---|
74 | end |
---|
75 | end |
---|
76 | |
---|