[scilab-Users] 3d-project​ed-2d with colors as altitude

Samuel Gougeon sgougeon at free.fr
Thu Sep 22 22:49:19 CEST 2011


Le 22/09/2011 22:29, Samuel Gougeon a écrit :
> .../...
>
> // Plotting the projection as a set of adjacent but individual colored 
> segments:
> X = [x(1:$-1);x(2:$)];
> Y = [y(1:$-1);y(2:$)];
> xpolys(X,Y,zcol(1:$-1))   // That's it
Replacing   xpolys(X,Y,zcol(1:$-1))
with  xsegs(X,Y,zcol(1:$-1))

is much better, noticeably if you wish to plot the projection onto
a z=/=0 plane. For instance, after the xsegs(...) instruction, doing

e = gce(); e.data(:,3)=3.5;

will raise the projection above the helix.

xpolys() will not allow that (or in a much more complicated way).

Samuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110922/0e215359/attachment.htm>


More information about the users mailing list