1
.TH plot3d1 2 "April 1993" "Scilab Group" "Scilab Function"
4
plot3d1 - 3D gray or color level plot of a surface
7
plot3d1(x,y,z,[theta,alpha,leg,flag,ebox])
8
plot3d1(xf,yf,zf,[theta,alpha,leg,flag,ebox])
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.
15
\fVplot3d\fR plots a surface \fVz=f(x,y)\fR
16
with colors depending on the z-level of the surface.
18
Enter the command \fVplot3d1()\fR to see a demo.
21
// simple plot using z=f(x,y)
22
t=[0:0.3:2*%pi]'; z=sin(t)*cos(t');
24
// same plot using facets computed by genfac3d
25
[xx,yy,zz]=genfac3d(t,t,z);
30
plot3d1([xx xx],[yy yy],[zz 4+zz])
31
// simple plot with viewpoint and captions
33
plot3d1(1:10,1:20,10*rand(10,20),35,45,"X@Y@Z",[2,2,3])
34
// same plot without grid
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)"]);
42
[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20));