<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 29/01/2012 20:06, Constellation Athome wrote:
<blockquote
cite="mid:CA+g0r+NeLg8ccExzwVYhWjhD4zzYnuMF=iAKwzEuY_crPD_B+A@mail.gmail.com"
type="cite">Hi there,<br>
</blockquote>
<br>
Hi,<br>
<br>
In taking the example given in plot3d.html, you can make something
like:<br>
<br>
deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";..
<br>
"y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";.. <br>
"z=r*sin(alp)+orig(3)*ones(tet)"]); <br>
r=1; orig=[0 0 0]; <br>
[xx,yy,zz]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20));
<br>
clf();<br>
plot3d(xx,yy,zz)<br>
plot3d(xx,yy,zz + 2.5)<br>
<br>
a=gca();<br>
a.children(1).color_mode = 3;<br>
a.children(2).color_mode = 5;<br>
<br>
You should have a look at:<br>
<a class="moz-txt-link-freetext" href="http://help.scilab.org/docs/5.3.3/en_US/surface_properties.html">http://help.scilab.org/docs/5.3.3/en_US/surface_properties.html</a><br>
<br>
Regards,<br>
<br>
Calixte<br>
<br>
<br>
<blockquote
cite="mid:CA+g0r+NeLg8ccExzwVYhWjhD4zzYnuMF=iAKwzEuY_crPD_B+A@mail.gmail.com"
type="cite"><br>
I would like to give each sphere in my plot3d1 plot a different
color so that I can distinguish them better.<br>
I played around with <a moz-do-not-send="true" href="http://help">http://help</a>.<span
style="">scilab</span>.<span style="">org</span>/docs/<span
style="color: rgb(51, 51, 255);">5.3</span><span style="color:
rgb(51, 51, 255);">.3</span>/en_US/plot3d.<span style="">html</span>
but couldn't find a way to change it to rgb colours or whatever,
to have a red, a green and another colour.<br>
<br>
It would be great, if you could help me.<br>
And another question is, how to add opacity so that they will be
translucent.<br>
<br>
Thanks in advance,<br>
<br>
Andreas<br>
</blockquote>
<br>
</body>
</html>