1
plot2d1 Scilab Group Scilab Function plot2d1
3
plot2d1 - 2D plot (logarithmic axes) (obsolete)
6
plot2d1(str,x,y,[style,strf,leg,rect,nax])
8
str : is a string of length three "abc".
10
a : can have the following values: e, o or g.
12
e : means "empty". Itspecifies the fact that the value of x is
13
not used (the x values are supposed to be regularly spaced,
14
ie 1:<number of rows of y>). The user must anyway give a
15
value for x, 1 for instance: plot2d1("enn",1,y).
17
o : means "one". If there are many curves, they all have the
18
same x-values: x is a column vector of size nl and y is a
19
matrix of size (nl,nc). For example : x=[0:0.1:2*%pi]';
20
plot2d1("onn",x,[sin(x) cos(x)]).
22
g : means "general". x and y must have the same size (nl,nc).
23
Each column of y is plotted with respect to the corresponding
24
column of x. nc curves are plotted using nl points.
27
: can have the values n (normal) or l (logarithmic).
29
b=l : a logarithmic axis is used on the x-axis
31
c=l : a logarithmic axis is used on the y-axis
33
x,y,[style,strf,leg,rect,nax]
34
: these arguments have the same meaning as in the plot2d function.
37
: these arguments have the same meaning as in the plot2d function.
40
This function is obsolete. Use plot2d instead.
42
plot2d1 plots a set of 2D curves. It is the same as plot2d but with one
43
more argument str which enables logarithmic axis. Moreover, it allows to
44
specify only one column vector for x when it is the same for all the
45
curves. By default, successive plots are superposed. To clear the
46
previous plot, use xbasc. Enter the command plot2d1() to see a demo.
49
// multiple plot without giving x
51
plot2d1("enn",1,[sin(x) sin(2*x) sin(3*x)])
52
// multiple plot using only one x
54
plot2d1("onn",x,[sin(x) sin(2*x) sin(3*x)])
56
x=[0.1:0.1:3]'; xbasc()
57
plot2d1("oll",x,[exp(x) exp(x^2) exp(x^3)])
59
plot2d, plot2d2, plot2d3, plot2d4, xbasc