[scilab-Users] 3d-plot of points, but assigning each point with a specific color, how?

Serge Steer serge.steer at inria.fr
Sun Mar 11 21:55:37 CET 2012


----- Mail original -----
> De: "Constellation Athome" <constellationathome at googlemail.com>
> À: "users" <users at lists.scilab.org>
> Envoyé: Dimanche 11 Mars 2012 19:31:41
> Objet: [scilab-Users] 3d-plot of points, but assigning each point with
> a specific color, how?
> hi,
> I want to plot points with 3d coordinates like this
> http://twitpic.com/8dj7r4 but I need to assign them with different
> colors, so that I can have a different color for each "cluster".
> how do I do that? and perhaps with bigger points, so that they are
> better visible ;).
> thanks in advance, Andreas
Here is an example for ploting several clusters with different colors xyz1=rand(10,3) ;// the first cluster points xyz2=3+rand(8,3);// the second cluster points drawlater() //disable drawing param3d(xyz1(:,1),xyz1(:,2),xyz1(:,2)) e1=gce();//the handle on the polyline e1.line_mode='off';e1.mark_mode='on'; e1.mark_size=2;e1.mark_foreground=5; param3d(xyz2(:,1),xyz2(:,2),xyz2(:,2)) e2=gce();//the handle on the polyline e2.line_mode='off';e2.mark_mode='on'; e2.mark_size=2;e2.mark_foreground=3; drawnow() //enable drawing 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 Serge Steer INRIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20120311/6eead889/attachment.htm>


More information about the users mailing list