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

« back to all changes in this revision

Viewing changes to man/graphics/plot3d1.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
 
plot3d1           Scilab Group           Scilab Function            plot3d1
2
 
NAME
3
 
   plot3d1 - 3D gray or color level plot of a surface
4
 
  
5
 
DESCRIPTION
6
 
 plot3d1(x,y,z,[theta,alpha,leg,flag,ebox])
7
 
 plot3d1(xf,yf,zf,[theta,alpha,leg,flag,ebox])
8
 
PARAMETERS
9
 
   See plot3d for a full description. There is just a slight difference,
10
 
  only the sign of the flag(1)=mode parameter is used: if it is negative
11
 
  the grid is not drawn. 
12
 
  
13
 
DESCRIPTION
14
 
   plot3d plots a surface z=f(x,y) with colors depending on the z-level of
15
 
  the surface.  Enter the command plot3d1() to see a demo.
16
 
  
17
 
EXAMPLE
18
 
 // simple plot using z=f(x,y)
19
 
 t=[0:0.3:2*%pi]'; z=sin(t)*cos(t');
20
 
 plot3d1(t,t,z)
21
 
 // same plot using facets computed by genfac3d
22
 
 [xx,yy,zz]=genfac3d(t,t,z);
23
 
 xbasc()
24
 
 plot3d1(xx,yy,zz)
25
 
 // multiple plots
26
 
 xbasc()
27
 
 plot3d1([xx xx],[yy yy],[zz 4+zz])
28
 
 // simple plot with viewpoint and captions
29
 
 xbasc()
30
 
 plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3])
31
 
 // same plot without grid
32
 
 xbasc()
33
 
 plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[-2,2,3])
34
 
 // plot of a sphere using facets computed by eval3dp
35
 
 deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";..
36
 
   "y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";..
37
 
   "z=r*sin(alp)+orig(3)*ones(tet)"]);
38
 
 r=1; orig=[0 0 0];
39
 
 [xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20));
40
 
 xbasc()
41
 
 plot3d1(xx,yy,zz)
42
 
SEE ALSO
43
 
   plot3d
44
 
  
45
 
AUTHOR
46
 
   J.Ph.C.
47