File: contourf.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 (46 lines) | stat: -rw-r--r-- 1,802 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
contourf          Scilab Group          Scilab Function            contourf
NAME
   contourf - filled level curves of a surface on a 2D plot
  
CALLING SEQUENCE
 contourf(x,y,z,nz,[style,strf,leg,rect,nax])
PARAMETERS
 x,y   : two real row vectors of size n1 and n2: the grid.
       
 z     : real matrix of size (n1,n2), the values of the function.
       
 nz    : the level values or the number of levels.
       
      -   If nz is an integer, its value gives the number of level curves 
          equally spaced from zmin to zmax as follows:
          
          z= zmin + (1:nz)*(zmax-zmin)/(nz+1)
         Note that the zmin and zmax levels are not drawn  (generically
          they are reduced to points) but they can be added  with 
          
          [im,jm] = find(z == zmin);     // or zmax 
          plot2d(x(im)',y(jm)',-9,"000")
      -   If nz is a vector, nz(i) gives the value of the ith level curve.
          
 style,strf,leg,rect,nax
        : see plot2d. The argument style gives the dash styles or colors which
       are to be used for level curves. It must have the same size as the
       number of levels.
       
DESCRIPTION
   contourf paints surface between two consecutives level curves of a
  surface z=f(x,y) on a 2D plot. The values of f(x,y) are given by the
  matrix z at the grid points defined by x and y.  You can change the
  format of the floating point number printed on the levels by using
  xset("fpf",string) where string gives the  format in C format syntax (for
  example string="%.3f"). Use  string="" to switch back to default format. 
   Enter the command contour2d() to see a demo.
  
EXAMPLE
 contourf(1:10,1:10,rand(10,10),5,1:5,"011"," ",[0,0,11,11])
SEE ALSO
   contour, fcontour, fcontour2d, contour2di, plot2d, xset
  
AUTHOR
   J.Ph.C.