File: plot2d1.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (63 lines) | stat: -rw-r--r-- 2,367 bytes parent folder | download
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
plot2d1           Scilab Group           Scilab Function            plot2d1
NAME
   plot2d1 - 2D plot (logarithmic axes) (obsolete)
  
CALLING SEQUENCE
 plot2d1(str,x,y,[style,strf,leg,rect,nax])
PARAMETERS
 str   : is a string of length three "abc".
       
      a   : can have the following values: e, o  or g.
          
         e   : means "empty". Itspecifies the fact that the value of x is
             not used  (the x values are supposed to be regularly spaced, 
             ie 1:<number of rows of y>). The user must  anyway give a
             value for x, 1 for instance:  plot2d1("enn",1,y).
             
         o   : means "one". If there are many curves, they all have the
             same x-values: x is a column vector of size nl and y is a
             matrix of size (nl,nc). For example : x=[0:0.1:2*%pi]';
             plot2d1("onn",x,[sin(x) cos(x)]).
             
         g   : means "general". x and y must have the same size (nl,nc). 
             Each column of y is plotted  with respect to the corresponding
             column of x. nc curves are  plotted using nl points.
             
      b, c
                : can have the values n (normal) or l (logarithmic).
          
         b=l   : a logarithmic axis is used on the x-axis
               
         c=l   : a logarithmic axis is used on the y-axis
               
 x,y,[style,strf,leg,rect,nax]
        : these arguments have the same meaning as in the plot2d function.
       
 opt_args
        : these arguments have the same meaning as in the plot2d function.
       
DESCRIPTION
   This function is obsolete. Use plot2d instead.
  
   plot2d1 plots a set of 2D curves. It is the same as plot2d but with one
  more argument  str which enables logarithmic axis. Moreover, it allows to
  specify only one column vector for x when it is the same for all the
  curves.  By default, successive plots are superposed. To clear the
  previous plot,  use xbasc.  Enter the command plot2d1() to see a demo.
  
EXAMPLE
 // multiple plot without giving x
 x=[0:0.1:2*%pi]';
 plot2d1("enn",1,[sin(x) sin(2*x) sin(3*x)])
 // multiple plot using only one x
 xbasc()
 plot2d1("onn",x,[sin(x) sin(2*x) sin(3*x)])
 // logarithmic plot
 x=[0.1:0.1:3]'; xbasc()
 plot2d1("oll",x,[exp(x) exp(x^2) exp(x^3)])
SEE ALSO
   plot2d, plot2d2, plot2d3, plot2d4, xbasc
  
AUTHOR
   J.Ph.C.