13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="plot2d1">
15
<refname>plot2d1</refname>
16
<refpurpose>2次元プロット (対数軸)
21
<title>Calling Sequence</title>
22
<synopsis>plot2d1(str,x,y,[style,strf,leg,rect,nax])</synopsis>
25
<title>Parameters</title>
31
is a string of length three <literal>"abc"</literal>.
38
can have the following values: <literal>e</literal>,
39
<literal>o</literal> or <literal>g</literal>.
45
<para>means "empty". Itspecifies the fact that the value
46
of <literal>x</literal> is not used (the <literal>x</literal> values
47
are supposed to be regularly spaced, ie 1:<number of
48
rows of <literal>y</literal>>). The user must anyway give a
49
value for <literal>x</literal>, 1 for instance:
50
<literal>plot2d1("enn",1,y)</literal>.
57
<para>means "one". If there are many curves, they all
58
have the same x-values: <literal>x</literal> is a column
59
vector of size nl and <literal>y</literal> is a matrix of size
60
(nl,nc). For example :
61
<literal>x=[0:0.1:2*%pi]';plot2d1("onn",x,[sin(x) cos(x)])</literal>.
69
means "general". <literal>x</literal> and <literal>y</literal>
70
must have the same size (nl,nc). Each column of
71
<literal>y</literal> is plotted with respect to the
72
corresponding column of <literal>x</literal>. <literal>nc</literal>
73
curves are plotted using <literal>nl</literal> points.
84
can have the values <literal>n</literal> (normal) or
85
<literal>l</literal> (logarithmic).
91
<para>a logarithmic axis is used on the x-axis</para>
97
<para>a logarithmic axis is used on the y-axis</para>
107
<term>x,y,[style,strf,leg,rect,nax]</term>
109
<para>these arguments have the same meaning as in the
110
<literal>plot2d</literal> function.
115
<term>opt_args</term>
117
<para>these arguments have the same meaning as in the
118
<literal>plot2d</literal> function.
125
<title>Description</title>
127
This function is obsolete. USE <literal>plot2d</literal> INSTEAD !!
130
<literal>plot2d1</literal> plots a set of 2D curves. It is the same as
131
<literal>plot2d</literal> but with one more argument <literal>str</literal> which
132
enables logarithmic axis. Moreover, it allows to specify only one column
133
vector for <literal>x</literal> when it is the same for all the curves.
135
<para>By default, successive plots are superposed. To clear the previous
136
plot, use <literal>clf</literal>.
139
Enter the command <literal>plot2d1()</literal> to see a demo.
143
<title>Examples</title>
144
<programlisting role="example"><![CDATA[
15
<refname>plot2d1</refname>
16
<refpurpose>2次元プロット (対数軸)
21
<title>Calling Sequence</title>
22
<synopsis>plot2d1(str,x,y,[style,strf,leg,rect,nax])</synopsis>
25
<title>Parameters</title>
31
is a string of length three <literal>"abc"</literal>.
38
can have the following values: <literal>e</literal>,
39
<literal>o</literal> or <literal>g</literal>.
45
<para>means "empty". Itspecifies the fact that the value
46
of <literal>x</literal> is not used (the <literal>x</literal> values
47
are supposed to be regularly spaced, ie 1:<number of
48
rows of <literal>y</literal>>). The user must anyway give a
49
value for <literal>x</literal>, 1 for instance:
50
<literal>plot2d1("enn",1,y)</literal>.
57
<para>means "one". If there are many curves, they all
58
have the same x-values: <literal>x</literal> is a column
59
vector of size nl and <literal>y</literal> is a matrix of size
60
(nl,nc). For example :
61
<literal>x=[0:0.1:2*%pi]';plot2d1("onn",x,[sin(x) cos(x)])</literal>.
69
means "general". <literal>x</literal> and <literal>y</literal>
70
must have the same size (nl,nc). Each column of
71
<literal>y</literal> is plotted with respect to the
72
corresponding column of <literal>x</literal>. <literal>nc</literal>
73
curves are plotted using <literal>nl</literal> points.
84
can have the values <literal>n</literal> (normal) or
85
<literal>l</literal> (logarithmic).
91
<para>a logarithmic axis is used on the x-axis</para>
97
<para>a logarithmic axis is used on the y-axis</para>
107
<term>x,y,[style,strf,leg,rect,nax]</term>
109
<para>these arguments have the same meaning as in the
110
<literal>plot2d</literal> function.
115
<term>opt_args</term>
117
<para>these arguments have the same meaning as in the
118
<literal>plot2d</literal> function.
125
<title>Description</title>
127
This function is obsolete. USE <literal>plot2d</literal> INSTEAD !!
130
<literal>plot2d1</literal> plots a set of 2D curves. It is the same as
131
<literal>plot2d</literal> but with one more argument <literal>str</literal> which
132
enables logarithmic axis. Moreover, it allows to specify only one column
133
vector for <literal>x</literal> when it is the same for all the curves.
135
<para>By default, successive plots are superposed. To clear the previous
136
plot, use <literal>clf</literal>.
139
Enter the command <literal>plot2d1()</literal> to see a demo.
143
<title>Examples</title>
144
<programlisting role="example"><![CDATA[
145
145
// multiple plot without giving x
146
146
x=[0:0.1:2*%pi]';
147
147
plot2d1("enn",1,[sin(x) sin(2*x) sin(3*x)])