<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
Le 10/10/2013 03:08, William Drago a écrit :<br>
</div>
<blockquote cite="mid:5255FE1B.1010001@gmail.com" type="cite">All,
<br>
<br>
I have made a 3d plot of some colors in the RGB color space.
Currently the marks are all the same color. I would like each mark
to be the color it represents in the space. So, a mark in the red
corner of the plot should be red, etc...
<br>
<br>
The code I have so far is below.
<br>
</blockquote>
.<br>
The implementation of new features as this one has been started
here:<br>
<a class="moz-txt-link-freetext" href="https://codereview.scilab.org/#/c/10582/">https://codereview.scilab.org/#/c/10582/</a><br>
For the time being, as far as i know, the only possibility is to use
param3d1().<br>
Herebelow is an example.<br>
HTH<br>
Samuel<br>
<br>
<br>
// Data<br>
nc = 100; // number of colors<br>
n = 500; // number of points<br>
x = rand(1,n); y = rand(1,n);<br>
z = rand(1,n); w = rand(1,n)*nc;<br>
<br>
// Display :<br>
clf<br>
f = gcf();<br>
f.color_map = jetcolormap(nc);<br>
drawlater<br>
param3d1([x ; x],[y ; y],[z ; z])<br>
<br>
// Display and size of points :<br>
e = gce();<br>
e.children.mark_mode = "on";<br>
e.children.mark_size_unit = "point";<br>
e.children.mark_size = 5;<br>
<br>
// Assigning colors to the points:<br>
for i = 1:length(e.children)<br>
e.children(i).mark_foreground = w(i);<br>
end<br>
drawnow<br>
<br>
<img src="cid:part1.08030606.05070103@free.fr" alt=""><br>
<br>
<br>
</body>
</html>