[doc] ISO-8859 => UTF-8 reencoding and tagging
[scilab.git] / scilab / modules / graphics / help / pt_BR / color_management / colormap.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) INRIA
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: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="pt">
17     <refnamediv>
18         <refname>colormap</refname>
19         <refpurpose>mapa de cores</refpurpose>
20     </refnamediv>
21     <refsection>
22         <title>Descrição</title>
23         <para>
24             Um mapa de cores <literal>cmap</literal> é definido por uma matriz m
25             x 3 . m é o número de cores. A cor de número i é dada pela tripla
26             <literal>cmap(i,1)</literal>, <literal>cmap(i,2)</literal>
27             <literal>cmap(i,3)</literal> correspondentes às intensidades de vermelho,
28             verde e azul entre 0 e 1.
29         </para>
30         <para>De início, 32 cores são definidas no mapa de cores. Você pode
31             modificar o mapa de cores de uma figura através da opção
32             <literal>set(f,"color_map",cmap)</literal> onde <literal>f</literal> é o
33             manipulador da figura.
34         </para>
35         <para>Cada cor no mapa de cores possui um identificador que você deve
36             utilizar para especificar a cor na maioria das funções de esboço. Para
37             visualizar os identificadores, use a função <link linkend="getcolor">getcolor</link>.
38         </para>
39         <para>
40             As funções <link linkend="hotcolormap">hotcolormap</link>, <link linkend="jetcolormap">jetcolormap</link> e <link linkend="graycolormap">graycolormap</link> fornecem mapas de cores com
41             variação contínua de cores.
42         </para>
43         <para>Você pode obter o mapa de cores padrão através de
44             <literal>cmap=get(sdf(),"color_map")</literal>.
45         </para>
46     </refsection>
47     <refsection>
48         <title>Exemplos</title>
49         <programlisting role="example"><![CDATA[
50 n=64;
51 r=linspace(0,1,n)';
52 g=linspace(1,0,n)';
53 b=ones(r);
54 cmap=[r g b];
55 f=gcf(); f.color_map=cmap;
56 plot3d1()
57 f.color_map=get(sdf(),"color_map");
58  ]]></programlisting>
59     </refsection>
60     <refsection role="see also">
61         <title>Ver Também</title>
62         <simplelist type="inline">
63             <member>
64                 <link linkend="autumncolormap">autumncolormap</link>
65             </member>
66             <member>
67                 <link linkend="bonecolormap">bonecolormap</link>
68             </member>
69             <member>
70                 <link linkend="coolcolormap">coolcolormap</link>
71             </member>
72             <member>
73                 <link linkend="coppercolormap">coppercolormap</link>
74             </member>
75             <member>
76                 <link linkend="graycolormap">graycolormap</link>
77             </member>
78             <member>
79                 <link linkend="hotcolormap">hotcolormap</link>
80             </member>
81             <member>
82                 <link linkend="hsvcolormap">hsvcolormap</link>
83             </member>
84             <member>
85                 <link linkend="jetcolormap">jetcolormap</link>
86             </member>
87             <member>
88                 <link linkend="oceancolormap">oceancolormap</link>
89             </member>
90             <member>
91                 <link linkend="pinkcolormap">pinkcolormap</link>
92             </member>
93             <member>
94                 <link linkend="rainbowcolormap">rainbowcolormap</link>
95             </member>
96             <member>
97                 <link linkend="springcolormap">springcolormap</link>
98             </member>
99             <member>
100                 <link linkend="summercolormap">summercolormap</link>
101             </member>
102             <member>
103                 <link linkend="whitecolormap">whitecolormap</link>
104             </member>
105             <member>
106                 <link linkend="wintercolormap">wintercolormap</link>
107             </member>
108             <member>
109                 <link linkend="color">color</link>
110             </member>
111             <member>
112                 <link linkend="getcolor">getcolor</link>
113             </member>
114         </simplelist>
115     </refsection>
116 </refentry>