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
|
<?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="leaf_properties" xml:lang="en">
<info>
<pubdate>$LastChangedDate: 26-05-2009 $</pubdate>
</info>
<refnamediv>
<refname>Leaf properties</refname>
<refpurpose>Emulated Matlab Leaf properties</refpurpose>
</refnamediv>
<refsection>
<title>Description</title>
<para>By Leaf we denote all graphic objects created by plotlib high level commands. They are actually of three possible
types : Polyline, Segs, Fac3d or Compound. For the moment, there is only one set of properties, although some are only specific
to given objetcs. These emulated properties can be accessed and changed by using set and get.</para>
<informaltable>
<tr><td>Faces</td></tr>
<tr><td>XData</td></tr>
<tr><td>YData</td></tr>
<tr><td>ZData</td></tr>
<tr><td>CData</td></tr>
<tr><td>CDataMapping</td></tr>
<tr><td>UData</td></tr>
<tr><td>VData</td></tr>
<tr><td>WData</td></tr>
<tr><td>VertexNormals</td></tr>
<tr><td>FaceNormals</td></tr>
<tr><td>Color</td></tr>
<tr><td>FaceColor</td></tr>
<tr><td>EdgeColor</td></tr>
<tr><td>LineWidth</td></tr>
<tr><td>LineStyle</td></tr>
<tr><td>Marker</td></tr>
<tr><td>MarkerSize</td></tr>
<tr><td>MarkerEdgeColor</td></tr>
<tr><td>MarkerFaceColor</td></tr>
<tr><td>AutoScaleFactor</td></tr>
<tr><td>DisplayName</td></tr>
</informaltable>
<para>We give below some examples and peculiarities</para>
</refsection>
<refsection>
<title>CData</title>
<programlisting role="example">h=surf();
c=get(h,'CData');
caxis([0 1]);
for i=1:100
set(h,'CData',rand(c));
end</programlisting>
</refsection>
<refsection>
<title>FaceColor</title>
<para>This property is classically used to change the shading model of faces and can take the value of a color (string or 3-vector) or
a string chose among the values 'none','flat','interp','mean'. This last value does not exist in Matlab and represents the default flat-shading
of Scilab, which is an average of vertices color indices.</para>
<programlisting role="example">c=rand(10,10);
pcolor(1:10,1:10,c);
hold on
pcolor(11:20,1:10,c,'FaceColor','mean');
pcolor(21:30,1:10,c,'FaceColor','interp');
hold off
colorbar bot
title 'flat, mean, interp'</programlisting>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="flatmeaninterp.png"/>
</imageobject>
</mediaobject>
</screenshot>
</refsection>
<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Stphane Mottelet</member>
</simplelist>
</refsection>
</refentry>
|