650e039d18a1abc3307c738a35d7f7c3998c1197
[scilab.git] / scilab / modules / graphics / help / pt_BR / load_save / xload.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) ENPC - Jean-Philippe Chancelier
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <refentry 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" xmlns:scilab="http://www.scilab.org" xml:id="xload" xml:lang="pt">
17     <refnamediv>
18         <refname>xload</refname>
19         <refpurpose>carrega gráficos salvos</refpurpose>
20     </refnamediv>
21     <refsynopsisdiv>
22         <title>Seqüência de Chamamento</title>
23         <synopsis>xload(file_name,[win_num])</synopsis>
24     </refsynopsisdiv>
25     <refsection>
26         <title>Parâmetros</title>
27         <variablelist>
28             <varlistentry>
29                 <term>file_name</term>
30                 <listitem>
31                     <para>string, o nome do arquivo</para>
32                 </listitem>
33             </varlistentry>
34             <varlistentry>
35                 <term>win_num</term>
36                 <listitem>
37                     <para>inteiro, o número da janela de gráficos. Se não for fornecido,
38                         a janela de gráficos corrente é utilizada
39                     </para>
40                 </listitem>
41             </varlistentry>
42         </variablelist>
43     </refsection>
44     <refsection>
45         <title>Descrição</title>
46         <para>
47             <literal>xload</literal> recarrega os gráficos contidos no arquivo
48             <literal>file_name</literal> na janela de gráficos
49             <literal>win_num</literal>.
50         </para>
51         <para>
52             Desde o Scilab 5.0, todos os manipuladores <link linkend="uimenu">uimenu</link> ou <link linkend="uicontrol">uicontrol</link> são também carregados.
53         </para>
54         <para>Para arquivos contendo novos gráficos, a função
55             <literal>load</literal> pode ser utilizada ao invés de
56             <literal>xload</literal>. <literal>xload</literal> não recupera o número
57             da janela, nem seu tamanho ou dimensões.
58         </para>
59     </refsection>
60     <refsection>
61         <title>Exemplos</title>
62         <programlisting role="example"><![CDATA[
63 t=0:0.01:10;
64 subplot(211),plot2d(t,sin(t))
65 subplot(212),plot2d(t,sin(3*t))
66 xsave(TMPDIR + "/foo.scg", gcf())
67 clf()
68 xload(TMPDIR + "/foo.scg")
69
70 a=gca();
71 curve=a.children.children; //handle on the curve
72 save(TMPDIR + "/foo.scg", "curve")
73 delete(curve)
74 load(TMPDIR + "/foo.scg")
75  ]]></programlisting>
76     </refsection>
77     <refsection role="see also">
78         <title>Ver Também</title>
79         <simplelist type="inline">
80             <member>
81                 <link linkend="xsave">xsave</link>
82             </member>
83             <member>
84                 <link linkend="load">load</link>
85             </member>
86             <member>
87                 <link linkend="save">save</link>
88             </member>
89         </simplelist>
90     </refsection>
91 </refentry>