~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/graphics/plot3d1.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

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