<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.fontsize2
        {mso-style-name:fontsize2;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Samuel,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks for your reply. Actually I had looked this thread. But I want to draw every point in different color if their z value is different.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I am not very clear about the list(z,colors) in param3d1 function. My understanding, the colors should be a vector values mapped from z value. Isn’t? but it doesn’t work.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="1338" style="width:1003.5pt">
<tbody>
<tr>
<td width="1329" nowrap="" style="width:996.45pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="color:#1F497D">And I also looked the thread written by Enrico Segre.
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:windowtext"><o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0cm 6.75pt 0cm 0cm"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span class="apple-style-span"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">clf(); xset("colormap",hotcolormap(nc))</span></span><span class="apple-converted-space"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""> </span></span><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><br>
<span class="apple-style-span">drawlater()</span><span class="apple-converted-space"> </span><br>
<span class="apple-style-span">plot2d(x,y,-2)</span><span class="apple-converted-space"> </span><br>
<span class="apple-style-span">for i=1:N</span><span class="apple-converted-space"> </span><br>
<span class="apple-style-span">  plot2d(x(i),y(i),-9)</span><span class="apple-converted-space"> </span><br>
<span class="apple-style-span">  e=gce();e=e.children;</span><span class="apple-converted-space"> </span><br>
<span class="apple-style-span">  e.mark_size_unit="point"; e.mark_size=6;</span><span class="apple-converted-space"> </span><br>
<span class="apple-style-span">  e.mark_foreground=-1;  e.mark_background=zc(i);</span><span class="apple-converted-space"> </span><br>
<span class="apple-style-span">end</span><span class="apple-converted-space"> </span><br>
<span class="apple-style-span">drawnow()</span><span class="apple-converted-space"> <o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">the function works for plot2d. but my data is huge. It has 290000 points. It will be very slow using this function due to the loop for every
 points.<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">For plot 3d points. Still I haven’t solution.<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">Regards<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">Ding zheng<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Samuel GOUGEON [mailto:Samuel.Gougeon@univ-lemans.fr]
<br>
<b>Sent:</b> woensdag 23 februari 2011 14:08<br>
<b>To:</b> users@lists.scilab.org<br>
<b>Subject:</b> Re: [scilab-Users] plot dots in 3d and 2d using color<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hello,<br>
<br>
----- Message d'origine ----- <br>
De : Ding Zheng <br>
Date : 23/02/2011 11:17: <o:p></o:p></p>
<p class="MsoNormal"><span class="apple-style-span"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi</span></span><o:p></o:p></p>
<p class="MsoNormal"><span class="apple-style-span"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I am trying plot dots 3d in Scilab. the data someting like x(1,n),y(1,n),z(1,</span></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><br>
<span class="apple-style-span">n). I tried both plot3d(x,y,list(z,colors)) and param3d1(x,y,list(z,colors)).</span><br>
<span class="apple-style-span">I made the colors las below:</span><br>
<br>
<span class="apple-style-span">nc=256;</span><span class="apple-converted-space"> </span><br>
<span class="apple-style-span">colors =1+(nc-1)*(z-min(z))/(max(z)-min(z));  </span><br>
<br>
<span class="apple-style-span">the dots can be plotted. but the dots's color is always black. if use a</span><br>
<span class="apple-style-span">colormap. xset("colormap",hotcolormap(256)). it also doesn't work.</span><br>
<br>
<span class="apple-style-span">Can everyone help me?</span></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">You may have a look here:<br>
<a href="http://bugzilla.scilab.org/show_bug.cgi?id=6344#c1">http://bugzilla.scilab.org/show_bug.cgi?id=6344#c1</a><br>
attachement: <a href="http://bugzilla.scilab.org/attachment.cgi?id=1465">http://bugzilla.scilab.org/attachment.cgi?id=1465</a><br>
plotPoints() plots a set a points with the desired color,<br>
the same color for all points.<br>
<br>
Regards<br>
Samuel<o:p></o:p></span></p>
</div>
</body>
</html>