<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Le 22/09/2011 22:29, Samuel Gougeon a écrit :
<blockquote cite="mid:4E7B9AC6.6020000@free.fr" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
.../...<br>
<br>
// Plotting the projection as a set of adjacent but individual colored
segments:<br>
X = [x(1:$-1);x(2:$)];<br>
Y = [y(1:$-1);y(2:$)];<br>
xpolys(X,Y,zcol(1:$-1)) // That's it<br>
</blockquote>
Replacing xpolys(X,Y,zcol(1:$-1))<br>
with xsegs(X,Y,zcol(1:$-1)) <br>
<br>
is much better, noticeably if you wish to plot the projection onto<br>
a z=/=0 plane. For instance, after the xsegs(...) instruction, doing<br>
<br>
e = gce(); e.data(:,3)=3.5;<br>
<br>
will raise the projection above the helix.<br>
<br>
xpolys() will not allow that (or in a much more complicated way).<br>
<br>
Samuel<br>
<br>
</body>
</html>