1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
* Ajouter ici d'ventuels commentaires sur le fichier XML
-->
<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" version="5.0-subset Scilab" xml:id="fill" xml:lang="en">
<info>
<pubdate>$LastChangedDate: 26-05-2009 $</pubdate>
</info>
<refnamediv>
<refname>fill</refname>
<refpurpose>Display 2-D filled polygons with pseudo-color</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>hdl = fill(X,Y,C)</synopsis>
</refsynopsisdiv>
<refsection>
<title>Parameter</title>
<variablelist>
<varlistentry>
<term>X</term>
<listitem>
<para>m by n matrix</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Y</term>
<listitem>
<para>m by n matrix</para>
</listitem>
</varlistentry>
<varlistentry>
<term>C</term>
<listitem>
<para>1 by n matrix or m by n matrix</para>
</listitem>
</varlistentry>
<varlistentry>
<term>hdl</term>
<listitem>
<para>Handle of the created Fac3d entity</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Description</title>
<para>fill(X,Y,C) displays 2D filled m-vertices polygons. When C is a
vector then C(i) gives the value for polygon i. The actual color is
computed by mapping the minimum and maximum value of C to the RBG colormap
of the current figure. The actual scale can be controlled by the 'caxis'
property.</para>
<para>When X,Y and C are matrices of the same size, the color is given by
the first vertex of each polygon or interpolated, depending on the
'shading' property.</para>
</refsection>
<refsection>
<title>Examples</title>
<programlisting role="example">
x=[0 1 1 0]';y=[0 0 1 1]';c=[1 2 3 4]';
fill([x 1+x x],[y y 1+y],[c 2+c 3+c],'facecolor','interp');
axis equal</programlisting>
</refsection>
<refsection>
<title>Screenshot</title>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="fill.png"/>
</imageobject>
</mediaobject>
</screenshot>
</refsection>
<refsection>
<title>See Also</title>
<simplelist type="inline">
<member>
<link linkend="fill">fill</link>
</member>
<member>
<link linkend="surf">surf</link>
</member>
<member>
<link linkend="colormap">colormap</link>
</member>
<member>
<link linkend="shading">shading</link>
</member>
<member>
<link linkend="caxis">caxis</link>
</member>
<member>
<link linkend="colorbar">colorbar</link>
</member>
</simplelist>
</refsection>
<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Stphane Mottelet</member>
</simplelist>
</refsection>
</refentry>
|