File: plotframe.xml

package info (click to toggle)
scilab 5.2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 334,832 kB
  • ctags: 52,586
  • sloc: xml: 526,945; ansic: 223,590; fortran: 163,080; java: 56,934; cpp: 33,840; tcl: 27,936; sh: 20,397; makefile: 9,908; ml: 9,451; perl: 1,323; cs: 614; lisp: 30
file content (178 lines) | stat: -rw-r--r-- 6,327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) INRIA
 * 
 * This file must be used under the terms of the CeCILL.
 * This source file is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at    
 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
 *
 -->
<refentry version="5.0-subset Scilab" xml:id="plotframe" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns5="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:db="http://docbook.org/ns/docbook">
  <info>
    <pubdate>$LastChangedDate: 2008-03-26 09:50:39 +0100 (Wed, 26 Mar 2008)
    $</pubdate>
  </info>

  <refnamediv>
    <refname>plotframe</refname>

    <refpurpose>esboça uma moldura com escalas e grides. Esta função está
    obsoleta.</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <title>Calling Sequence</title>

    <synopsis>plotframe(rect,tics,[arg_opt1,arg_opt2,arg_opt3])
plotframe(rect,&lt;opts_args&gt;)</synopsis>
  </refsynopsisdiv>

  <refsection>
    <title>Parameters</title>

    <variablelist>
      <varlistentry>
        <term>rect</term>

        <listitem>
          <para>vetor <literal>[xmin,ymin,xmax,ymax]</literal>.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>tics</term>

        <listitem>
          <para>vetor <literal>[nx,mx,ny,my]</literal> onde <literal>mx,
          nx</literal> (resp. <literal>my, ny</literal>) são o número de
          intervalos e subintervalos do eixo x (resp. eixo y) .</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>arg_optX</term>

        <listitem>
          <para>até três argumentos opcionais escolhidos entre.</para>

          <variablelist>
            <varlistentry>
              <term>flags</term>

              <listitem>
                <para>vetor <literal>[wantgrids,findbounds]</literal> onde
                <literal>wantgrids</literal> é uma variável booleana
                (<literal>%t</literal> ou <literal>%f</literal>) que indica o
                gridding. <literal>findbounds</literal> é uma variável
                booleana. Se <literal>findbounds</literal> for
                <literal>%t</literal>, os limites dados em
                <literal>rect</literal> podem ser ligeiramente modificados (na
                verdade sempre aumentados) a fim de se obter graduações mais
                simples: então <literal>tics(2)</literal> e
                <literal>tics(4)</literal> são ignorados.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term>Captions</term>

              <listitem>
                <para>vetor de três strings
                <literal>[title,x-leg,y-leg]</literal> correspondentes
                respectivamente ao título do esboço e às legendas dos eixos x
                e y. Aviso: o "C" maiúsculo é importante.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term>subwin</term>

              <listitem>
                <para>um vetor de tamanho 4 definindo a sub-janela. A
                sub-janela é especificada através do parâmetro
                <literal>subwin=[x,y,w,h]</literal> (ponto superior esquerdo,
                largura, altura). Os valores em <literal>subwin</literal> são
                especificados utilizando-se a proporção de largura ou altura
                da janela de gráficos corrente (ver
                <literal>xsetech</literal>).</para>
              </listitem>
            </varlistentry>
          </variablelist>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>&lt;opts_args&gt;</term>

        <listitem>
          <para>representa uma seqüência de declarações <emphasis
          role="bold">key1=value1</emphasis>,<emphasis role="bold">
          key2=value2</emphasis>,... onde <emphasis
          role="bold">key1</emphasis>, <emphasis
          role="bold">key2</emphasis>,... podem ser um dos seguintes:
          <emphasis role="bold">tics</emphasis>, <emphasis
          role="bold">flags</emphasis>, <emphasis
          role="bold">captions</emphasis> ou <emphasis
          role="bold">subwin</emphasis>. Estes argumentos têm o mesmo
          significado que aqueles utilizados na primeira forma da
          rotina.</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>

  <refsection>
    <title>Descrição</title>

    <para><literal>plotframe</literal> é utilizado com funções de esboço 2d
    <link linkend="plot2d">plot2d</link>, <link
    linkend="plot2d1">plot2d1</link>,... para ajustar uma moldura gráfica.
    Deve ser usado antes de <literal>plot2d</literal> que deve ser chamado com
    o modo de superposição "000" .</para>

    <para><emphasis role="bold">Esta função está obsoleta.</emphasis></para>
  </refsection>

  <refsection>
    <title>Exemplos</title>

    <programlisting role="example"><![CDATA[ 
x=[-0.3:0.8:27.3]';
y=rand(x);
rect=[min(x),min(y),max(x),max(y)];
tics=[4,10,2,5];    //4 x-intervalos e 2 y-intervalos
plotframe(rect,tics,[%f,%f],["Meu esboço","x","y"],[0,0,0.5,0.5])
plot2d(x,y,2,"000")
plotframe(rect,tics=tics,flags=[%t,%f],Captions=["Meu esboço com grides","x","y"],subwin=[0.5,0,0.5,0.5])
plot2d(x,y,3,"000")
plotframe(rect,tics,[%t,%t],..
["Meu esboço com grides e fronteiras automáticas","x","y"],[0,0.5,0.5,0.5])
plot2d(x,y,4,"000")
plotframe(rect,flags=[%f,%t],tics=tics,..
          Captions=["Meu esboço sem grides mas com fronteiras automáticas ","x","y"],..
          subwin=[0.5,0.5,0.5,0.5])
plot2d(x,y,5,"000")
 ]]></programlisting>
  </refsection>

  <refsection>
    <title>Ver Também</title>

    <simplelist type="inline">
      <member><link linkend="plot2d">plot2d</link></member>

      <member><link linkend="graduate">graduate</link></member>

      <member><link linkend="xsetech">xsetech</link></member>
    </simplelist>
  </refsection>
</refentry>