~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/graphics/plot2d1.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
plot2d1           Scilab Group           Scilab Function            plot2d1
2
 
NAME
3
 
   plot2d1 - 2D plot (logarithmic axes) (obsolete)
4
 
  
5
 
CALLING SEQUENCE
6
 
 plot2d1(str,x,y,[style,strf,leg,rect,nax])
7
 
PARAMETERS
8
 
 str   : is a string of length three "abc".
9
 
       
10
 
      a   : can have the following values: e, o  or g.
11
 
          
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).
16
 
             
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)]).
21
 
             
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.
25
 
             
26
 
      b, c
27
 
                : can have the values n (normal) or l (logarithmic).
28
 
          
29
 
         b=l   : a logarithmic axis is used on the x-axis
30
 
               
31
 
         c=l   : a logarithmic axis is used on the y-axis
32
 
               
33
 
 x,y,[style,strf,leg,rect,nax]
34
 
        : these arguments have the same meaning as in the plot2d function.
35
 
       
36
 
 opt_args
37
 
        : these arguments have the same meaning as in the plot2d function.
38
 
       
39
 
DESCRIPTION
40
 
   This function is obsolete. Use plot2d instead.
41
 
  
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.
47
 
  
48
 
EXAMPLE
49
 
 // multiple plot without giving x
50
 
 x=[0:0.1:2*%pi]';
51
 
 plot2d1("enn",1,[sin(x) sin(2*x) sin(3*x)])
52
 
 // multiple plot using only one x
53
 
 xbasc()
54
 
 plot2d1("onn",x,[sin(x) sin(2*x) sin(3*x)])
55
 
 // logarithmic plot
56
 
 x=[0.1:0.1:3]'; xbasc()
57
 
 plot2d1("oll",x,[exp(x) exp(x^2) exp(x^3)])
58
 
SEE ALSO
59
 
   plot2d, plot2d2, plot2d3, plot2d4, xbasc
60
 
  
61
 
AUTHOR
62
 
   J.Ph.C.
63