source: trunk/PROGRAMMES/initfig.m @ 26

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

production de .ps au lieu de .eps

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
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%
56if (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]);
62else
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
75end
76
Note: See TracBrowser for help on using the repository browser.