<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><b>De: </b>"Constellation Athome" <constellationathome@googlemail.com><br><b>À: </b>"users" <users@lists.scilab.org><br><b>Envoyé: </b>Dimanche 11 Mars 2012 19:31:41<br><b>Objet: </b>[scilab-Users] 3d-plot of points, but assigning each point with a specific color, how?<br><br>hi,<br><br>I want to plot points with 3d coordinates like this <a href="http://twitpic.com/8dj7r4" target="_blank">http://twitpic.com/8dj7r4</a> but I need to assign them with different colors, so that I can have a different color for each "cluster".<br>
how do I do that? and perhaps with bigger points, so that they are better visible ;).<br><br>thanks in advance, Andreas<br>
</blockquote>Here is an example for ploting several clusters with different colors<br>xyz1=rand(10,3);// the first cluster points<br>xyz2=3+rand(8,3);// the second cluster points<br>drawlater() //disable drawing<br>param3d(xyz1(:,1),xyz1(:,2),xyz1(:,2))<br>e1=gce();//the handle on the polyline<br>e1.line_mode='off';e1.mark_mode='on'; e1.mark_size=2;e1.mark_foreground=5;<br>param3d(xyz2(:,1),xyz2(:,2),xyz2(:,2))<br>
e2=gce();//the handle on the polyline<br>
e2.line_mode='off';e2.mark_mode='on'; e2.mark_size=2;e2.mark_foreground=3;<br>
drawnow() //enable drawing<br><br>There is somewhere in the Scilab Code a fortran code that realizes clustering of 3D datas. I have to look a it, i will send it to you<br><br>Serge Steer<br>INRIA<br></div></body></html>