<?xml version="1.0" encoding="UTF-8"?>
<refentry version="5.0-subset Scilab" xml:id="gf_colormap" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:xi="http://www.w3.org/2001/XInclude"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:html="http://www.w3.org/1999/xhtml"
          xmlns:db="http://docbook.org/ns/docbook">
  <refnamediv>
    <refname>gf_colormap</refname>

    <refpurpose>Return a colormap, or change the current colormap</refpurpose>
  </refnamediv>

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

    <synopsis>c=gf_colormap(name)</synopsis>
  </refsynopsisdiv>

  <refsection>
    <title>Description</title>

    <para>Return a colormap, or change the current colormap. </para>

    <para><literal>name</literal> can be:</para>

    <itemizedlist>
      <listitem>
        <para>'tripod'</para>
      </listitem>

      <listitem>
        <para>'chouette'</para>
      </listitem>

      <listitem>
        <para>'froid'</para>
      </listitem>

      <listitem>
        <para>'tank'</para>
      </listitem>

      <listitem>
        <para>'earth'</para>
      </listitem>
    </itemizedlist>
  </refsection>

  <refsection>
    <title>Examples</title>

    <programlisting role="example"><![CDATA[ 
m2   = gf_mesh('triangles grid',[0:.1:1],[0:.1:1]);
mf2  = gf_mesh_fem(m2,1);
gf_mesh_fem_set(mf2 ,'fem',gf_fem('FEM_PK(2,2)'));//,gf_integ('IM_TRIANGLE(5)'));
U2  = gf_mesh_fem_get_eval(mf2,list('x.*y'));

gf_workspace('push');
sl2 = gf_slice(list('none'),m2,2);

h = scf();
h.colormap = gf_colormap('froid');

drawlater;
gf_plot_slice(sl2);
drawnow;
 ]]></programlisting>
  </refsection>

  <refsection>
    <title>See Also</title>

    <simplelist type="inline">
      <member><link linkend="gf_plot">gf_plot</link></member>
      <member><link linkend="gf_plot_slice">gf_plot_slice</link></member>
    </simplelist>
  </refsection>
</refentry>
