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