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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
|
<?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="plot" xml:lang="en">
<info>
<pubdate>$LastChangedDate: 26-05-2009 $</pubdate>
</info>
<refnamediv>
<refname>plot</refname>
<refpurpose>linear 2D plot</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>hdl = plot(X,Y,...,'PropertyName',PropertyValue,...)</synopsis>
<synopsis>hdl = plot(ax,X,Y,...)</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>ax</term>
<listitem>
<para>Axes handle</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>plot(X,Y) plots vector Y versus vector X. If X or Y is a matrix,
then the vector is plotted versus the rows or columns of the matrix,
whichever line up.</para>
<para>plot(Y) plots the columns of Y versus their index. In all uses of
plot, the imaginary part is ignored.</para>
<para>Various line thickness/style, plot symbols or colors may be obtained
with plot(X,Y,S) where S is a character string made from one element from
any or all the following 3 colunms</para>
<informaltable>
<tr>
<td>y : yellow</td>
<td>. point</td>
<td>- : solid</td>
</tr>
<tr>
<td>m : magenta</td>
<td>o circle</td>
<td>-- : dashed</td>
</tr>
<tr>
<td>c : cyan</td>
<td>+ plus</td>
<td>-. : dash-dot</td>
</tr>
<tr>
<td>r : red</td>
<td>* star</td>
<td>2 : double thickness</td>
</tr>
<tr>
<td>g : green</td>
<td>d diamond</td>
<td>3 : triple thickness</td>
</tr>
<tr>
<td>b : blue</td>
<td>f filled diamond</td>
<td>... up to 9 times</td>
</tr>
<tr>
<td>w : white</td>
<td>t trefoil</td>
<td/>
</tr>
<tr>
<td>b : black</td>
<td>^ triangle up</td>
<td/>
</tr>
<tr>
<td/>
<td>v triangle down</td>
<td/>
</tr>
</informaltable>
<para>For example, plot(X,Y,'-c+') plots a cyan solid line with a plus at
each data point; plot(X,Y,'bd') plots blue diamond at each data point but
does not draw any line.</para>
<para>plot(X1,Y1,S1,X2,Y2,S2,X3,Y3,S3,...) combines the plots defined by
the (X,Y,S) triples, where the X's and Y's are vectors or matrices and the
S's are strings. For example, plot(X,Y,'y-',X,Y,'go') plots the data
twice, with a solid yellow line interpolating green circles at the data
points.</para>
<para>The plot command, if no color is specified, makes automatic use of
the colors.</para>
<para>When f is a function then plot(x,f) plots the parametric or non
parametric curve defined by f :</para>
<itemizedlist>
<listitem>
<para>If f has the syntax [y]=f(x) then plot(x,f) plots the
non-parametric y=f(x),</para>
</listitem>
<listitem>
<para>If f has the syntax [x,y]=f(t) then plot(t,f) plots the
parametric curve [x(t),y(t)], example :</para>
</listitem>
</itemizedlist>
<programlisting>
t=linspace(0,2*%pi,63);
plot(cos(t),sin(t),'-g^r',cos(t),sin(2*t),'thickness',2);
axis equal
legend 'circle' 'lissajous curve'</programlisting>
<para>The X,Y pairs, or X,Y,S triples, can be followed by parameter/value
pairs to specify additional properties of the plot.</para>
</refsection>
<refsection>
<title>Screenshot</title>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="plot.png"/>
</imageobject>
</mediaobject>
</screenshot>
</refsection>
<refsection>
<title>See Also</title>
<simplelist type="inline">
<member>
<link linkend="figure">figure</link>
</member>
<member>
<link linkend="clf">clf</link>
</member>
<member>
<link linkend="axis">axis</link>
</member>
<member>
<link linkend="xlabel">xlabel</link>
</member>
<member>
<link linkend="ylabel">ylabel</link>
</member>
<member>
<link linkend="title">title</link>
</member>
<member>
<link linkend="semilogx">semilogx</link>
</member>
<member>
<link linkend="semilogy">semilogy</link>
</member>
<member>
<link linkend="loglog">loglog</link>
</member>
<member>
<link linkend="hold">hold</link>
</member>
<member>
<link linkend="subplot">subplot</link>
</member>
</simplelist>
</refsection>
<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Stphane Mottelet</member>
</simplelist>
</refsection>
</refentry>
|