[Scilab-users] Stacked 2D plot in 3D

Samuel Gougeon sgougeon at free.fr
Sun Jan 28 16:13:23 CET 2018


Hello Claus,

plot3d3() may be used for this kind of plot. It is even its main asset, 
despites it is not highlighted in its documentation. Here is an enriched 
version of its example, and its rendering:

u  =  linspace(-%pi/2,  %pi/2,  30);
v  =  linspace(0,  2*%pi,  30);
X  =  cos(u)'*cos(v);
Y  =  cos(u)'*sin(v);
Z  =  sin(u)'*ones(v);

clf
subplot(1,3,1)
plot3d3(X,Y,Z);

subplot(1,3,2)
plot3d3(X,Y,Z);
ax  =  gca();
ax.children(1).visible  =  "off";
ax.children(2).children.foreground  =  color("grey70");

subplot(1,3,3)
plot3d3(X,Y,Z);
ax  =  gca();
ax.children(2).visible  =  "off";
ax.children(1).children.foreground  =  color("orange");

f  =  gcf();
isoview(f)
f.children.rotation_angles  =  [50  20];

As you see, plot3d3() plots two independent sub-lattices that can be 
controlled independently. This may be easily applied to your case. If 
you don't need one of the sub-lattices, you may even delete it and keep 
only the other one. Cheers Samuel PS : i will propose an improved page 
for plot3d3.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180128/21de56ff/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ccjhpcnnigiimlbh.png
Type: image/png
Size: 25697 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20180128/21de56ff/attachment.png>


More information about the users mailing list