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 104 105 106
|
<?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="plot3" xml:lang="en">
<info>
<pubdate>$LastChangedDate: 26-05-2009 $</pubdate>
</info>
<refnamediv>
<refname>plot3</refname>
<refpurpose>Plot lines and points in 3-D space.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>hdl = plot3(X,Y,Z)</synopsis>
</refsynopsisdiv>
<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term>X</term>
<listitem>
<para>1 by n or m by n matrix</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Y</term>
<listitem>
<para>1 by n or m by n matrix</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Z</term>
<listitem>
<para>1 by n or m by n matrix</para>
</listitem>
</varlistentry>
<varlistentry>
<term>hdl</term>
<listitem>
<para>Handle of the created Polyline entity</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Description</title>
<para>plot3() is a three-dimensional analogue of PLOT().</para>
<para>plot3(x,y,z), where x, y and z are three vectors of the same length,
plots a line in 3-space through the points whose coordinates are the
elements of x, y and z. plot3(X,Y,Z), where X, Y and Z are three matrices
of the same size, plots several lines obtained from the columns of X, Y
and Z.</para>
<para>Various line types, plot symbols and colors may be obtained with
plot3(X,Y,Z,s) where s is a 1, 2 or 3 character string made from the
characters listed under the PLOT command.
plot3(x1,y1,z1,s1,x2,y2,z2,s2,x3,y3,z3,s3,...) combines the plots defined
by the (x,y,z,s) fourtuples, where the x's, y's and z's are vectors or
matrices and the s's are strings.</para>
<para>Example: A helix</para>
<programlisting>t = 0:%pi/50:10*%pi;
plot3(sin(t),cos(t),t); </programlisting>
<para>The X,Y,Z triples, or X,Y,Z,S quads, can be followed by
parameter/value pairs to specify additional properties.</para>
</refsection>
<refsection>
<title>Examples</title>
<programlisting role="example">t = linspace(0,10*%pi,512);
plot3(sin(t),cos(t),t,...
1+sin(t),cos(t),t,...
sin(t),1+cos(t),t,...
1+sin(t),1+cos(t),t);
view(45,70)
legend show</programlisting>
</refsection>
<refsection>
<title>Screenshot</title>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="plot3.png"/>
</imageobject>
</mediaobject>
</screenshot>
</refsection>
<refsection>
<title>See Also</title>
<simplelist type="inline">
<member>
<link linkend="plot">plot</link>
</member>
<member>
<link linkend="mesh">mesh</link>
</member>
<member>
<link linkend="surf">surf</link>
</member>
</simplelist>
</refsection>
<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Stphane Mottelet</member>
</simplelist>
</refsection>
</refentry>
|