Massive indent of all codes:
[scilab.git] / scilab / modules / graphics / help / pt_BR / color_management / colormap.xml
1         <?xml version="1.0" encoding="ISO-8859-1"?>
2     <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) INRIA
5  * 
6  * This file must be used under the terms of the CeCILL.
7  * This source file is licensed as described in the file COPYING, which
8  * you should have received as part of this distribution.  The terms
9  * are also available at    
10  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11  *
12  -->
13     <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="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="colormap" xml:lang="en">
14         <refnamediv>
15             <refname>colormap</refname>
16             <refpurpose>mapa de cores</refpurpose>
17         </refnamediv>
18         <refsection>
19             <title>Descrição</title>
20             <para>
21                 Um mapa de cores <literal>cmap</literal> é definido por uma matriz m
22                 x 3 . m é o número de cores. A cor de número i é dada pela tripla
23                 <literal>cmap(i,1)</literal>, <literal>cmap(i,2)</literal>
24                 <literal>cmap(i,3)</literal> correspondentes às intensidades de vermelho,
25                 verde e azul entre 0 e 1.
26             </para>
27             <para>De início, 32 cores são definidas no mapa de cores. Você pode
28                 modificar o mapa de cores de uma figura através da opção
29                 <literal>set(f,"color_map",cmap)</literal> onde <literal>f</literal> é o
30                 manipulador da figura.
31             </para>
32             <para>Cada cor no mapa de cores possui um identificador que você deve
33                 utilizar para especificar a cor na maioria das funções de esboço. Para
34                 visualizar os identificadores, use a função <link linkend="getcolor">getcolor</link>.
35             </para>
36             <para>
37                 As funções <link linkend="hotcolormap">hotcolormap</link>, <link linkend="jetcolormap">jetcolormap</link> e <link linkend="graycolormap">graycolormap</link> fornecem mapas de cores com
38                 variação contínua de cores.
39             </para>
40             <para>Você pode obter o mapa de cores padrão através de
41                 <literal>cmap=get(sdf(),"color_map")</literal>.
42             </para>
43         </refsection>
44         <refsection>
45             <title>Exemplos</title>
46             <programlisting role="example"><![CDATA[ 
47 n=64;
48 r=linspace(0,1,n)';
49 g=linspace(1,0,n)';
50 b=ones(r);
51 cmap=[r g b];
52 f=gcf(); f.color_map=cmap;
53 plot3d1()
54 f.color_map=get(sdf(),"color_map");
55  ]]></programlisting>
56         </refsection>
57         <refsection role="see also">
58             <title>Ver Também</title>
59             <simplelist type="inline">
60                 <member>
61                     <link linkend="autumncolormap">autumncolormap</link>
62                 </member>
63                 <member>
64                     <link linkend="bonecolormap">bonecolormap</link>
65                 </member>
66                 <member>
67                     <link linkend="coolcolormap">coolcolormap</link>
68                 </member>
69                 <member>
70                     <link linkend="coppercolormap">coppercolormap</link>
71                 </member>
72                 <member>
73                     <link linkend="graycolormap">graycolormap</link>
74                 </member>
75                 <member>
76                     <link linkend="hotcolormap">hotcolormap</link>
77                 </member>
78                 <member>
79                     <link linkend="hsvcolormap">hsvcolormap</link>
80                 </member>
81                 <member>
82                     <link linkend="jetcolormap">jetcolormap</link>
83                 </member>
84                 <member>
85                     <link linkend="oceancolormap">oceancolormap</link>
86                 </member>
87                 <member>
88                     <link linkend="pinkcolormap">pinkcolormap</link>
89                 </member>
90                 <member>
91                     <link linkend="rainbowcolormap">rainbowcolormap</link>
92                 </member>
93                 <member>
94                     <link linkend="springcolormap">springcolormap</link>
95                 </member>
96                 <member>
97                     <link linkend="summercolormap">summercolormap</link>
98                 </member>
99                 <member>
100                     <link linkend="whitecolormap">whitecolormap</link>
101                 </member>
102                 <member>
103                     <link linkend="wintercolormap">wintercolormap</link>
104                 </member>
105                 <member>
106                     <link linkend="color">color</link>
107                 </member>
108                 <member>
109                     <link linkend="getcolor">getcolor</link>
110                 </member>
111             </simplelist>
112         </refsection>
113     </refentry>