<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Book Antiqua";
panose-1:2 4 6 2 5 3 5 3 3 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
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;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
pre
{mso-style-priority:99;
mso-style-link:"Préformaté HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.PrformatHTMLCar
{mso-style-name:"Préformaté HTML Car";
mso-style-priority:99;
mso-style-link:"Préformaté HTML";
font-family:Consolas;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.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 lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hello,
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">This seems to work,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">param3d1([1 2 3;1 2 3],[3 4 2;3 4 2], list([5 2 4;5 2 4], [-2 -3 -4]));<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">and then it is possible to change the colour of each “pair of data point”.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">This is a bit simpler, but I did not try it:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">param3d1([1 2 3;1 2 3],[3 4 2;3 4 2], [5 2 4;5 2 4]);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">HTH<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Denis<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">De :</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> users <users-bounces@lists.scilab.org>
<b>De la part de</b> Izabela Wójcik-Grzaba<br>
<b>Envoyé :</b> vendredi 29 avril 2022 17:01<br>
<b>À :</b> users@lists.scilab.org<br>
<b>Objet :</b> Re: [Scilab-users] Changing properties of mark_mode polyline in param3d1<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">The problem is that my real plot is made with param3d1 and consists of different elements: polylines with line_mode, with mark_mode, xstrings. It is now impossible to change the type.<o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Kind regards,<o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Iza<o:p></o:p></span></p>
<div id="signature">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">---<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Izabela Wójcik-Grząba</span><span style="font-size:11.0pt;font-family:"Courier New""><br>
</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Zespół Konstrukcji Metalowych</span><span style="font-size:11.0pt;font-family:"Courier New""><br>
</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">ZKBiM IIB WIL Politechnika Warszawska</span><span style="font-size:11.0pt;font-family:"Courier New""><o:p></o:p></span></p>
</div>
</div>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p> </o:p></span></p>
<p id="reply-intro"><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">W dniu 29.04.2022 13:01, Stéphane Mottelet napisał(a):<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 5.0pt;margin-left:0cm;margin-right:0cm">
<div id="replybody1">
<div>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Hello,<o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">You should rather use scatter3d, which allows to give different colors to markers (and scale the color wrt a given color vector)<o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">S.<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Le 29/04/2022 à 12:49, Izabela Wójcik-Grząba a écrit :<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 5.0pt;margin-left:0cm;margin-right:0cm">
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Hello,<o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">I have a simple example of param3d1 graph:<o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Courier New"">param3d1([1 2 3],[3 4 2],[5 2 4]);</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Courier New"">h=gce();</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Courier New"">h.line_mode="off";</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Courier New"">h.mark_mode="on";</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Courier New"">h.mark_sytle=9;</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Courier New"">h.mark_size=1;</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Courier New"">h.mark_foreground=13;</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Courier New"">h.mark_background=13;</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">I would like to ask if it's possible to change properties of marks individually? My main goal is to change colors using colormap according to the values assigned to each mark (point on the graph).
As an illustration of my problem I give a vector of values and colors for the 3 points:<o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Courier New"">[1 2 3]</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Courier New"">[red green blue]</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">I know how to do it for line_mode="on", but for mark_mode the structure of figure is different.<o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Thanks in advance for any help. Regards,<o:p></o:p></span></p>
<p><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Iza<o:p></o:p></span></p>
<div id="v1signature">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">--
<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Izabela Wójcik-Grząba</span><span style="font-size:11.0pt;font-family:"Courier New""><br>
</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">Zespół Konstrukcji Metalowych</span><span style="font-size:11.0pt;font-family:"Courier New""><br>
</span><span style="font-size:11.0pt;font-family:"Book Antiqua",serif">ZKBiM IIB WIL Politechnika Warszawska</span><span style="font-size:11.0pt;font-family:"Courier New""><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>users mailing list<o:p></o:p></pre>
<pre><a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><o:p></o:p></pre>
<pre><a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>Stéphane Mottelet<o:p></o:p></pre>
<pre>Ingénieur de recherche<o:p></o:p></pre>
<pre>EA 4297 Transformations Intégrées de la Matière Renouvelable<o:p></o:p></pre>
<pre>Département Génie des Procédés Industriels<o:p></o:p></pre>
<pre>Sorbonne Universités - Université de Technologie de Compiègne<o:p></o:p></pre>
<pre>CS 60319, 60203 Compiègne cedex<o:p></o:p></pre>
<pre>Tel : +33(0)344234688<o:p></o:p></pre>
<pre><a href="http://www.utc.fr/~mottelet" target="_blank">http://www.utc.fr/~mottelet</a><o:p></o:p></pre>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Book Antiqua",serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><o:p></o:p></span></p>
</div>
</blockquote>
</div>
</body>
</html>