Hi Claus,
I tried to post an example of a stacked 2D plot but my post was held up
due to a too large graphic
file (postscript). I have now converted this plot to png format. Here it
is. Ypu may still be interested
in using the xpoly function, despite seeing Samuel's beautiful examples
with param3d.
Cheers
Jean-Philippe
Le 03/02/2018 à 21:27, Samuel Gougeon a écrit :
Le 03/02/2018 à 20:11, Claus Futtrup a écrit :
Hi Samuel
Thank you. This thing with the direction of the lines is difficult to
"discover" by accident. :-)
... And thanks for the good help for param3d(1). I hope Scilab will
adopt it.
When parts of curves are behind each others, there is a mess due to
the perspective.
Here is a way to avoid this (i will also add it in the page):
[Xo, Yo] = ndgrid(-10:0.5:10);
R = sqrt(Xo.*Xo + Yo.*Yo) + %eps;
Zo = sin(R)./R;
clf
// Simple plot with messed curves in the perspective
subplot(1, 3, 1)
param3d1(Xo, Yo, Zo, 150, 85, flag=[2,4])
// With a curtain and filled curved (to avoid messed areas)
subplot(1,3,2)
nc = size(Xo,"c");
zmin = min(Zo);
X = [Xo(1,:) ; Xo ; Xo($,:)];
Y = [Yo(1,:) ; Yo ; Yo($,:)];
Z = [zmin*ones(1,nc) ; Zo ; zmin*ones(1,nc)];
param3d1(X, Y, Z, 150, 85, flag=[2,4])
e = gce();
e.children.fill_mode = "on";
// Try to mask the curtain with %nan
// =>unsuccessful due to the bug http://bugzilla.scilab.org/11803
subplot(1,3,3)
X = [Xo([1 1],:) ; Xo ; Xo([$ $],:)];
Y = [Yo([1 1],:) ; Yo ; Yo([$ $],:)];
Z = [[zmin ; %nan]*ones(1,nc) ; Zo ; [%nan ; zmin]*ones(1,nc)];
param3d1(X, Y, Z, 150, 85, flag=[2,4])
e = gce();
e.children.fill_mode = "on";
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel
antivirus Avast.
https://www.avast.com/antivirus
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users