<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
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.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;
color:black;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle19
{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:72.0pt 72.0pt 72.0pt 72.0pt;}
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-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hello 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">Thank you very much for your reply, this is exactly what I need. Why re-invent the wheel when someone else has already done it. Maybe it's time I updated to Scilab 6…<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 again,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Adrian.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#231F20;mso-fareast-language:EN-GB">Adrian Weeks.<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-GB">Engineer, Hardware Engineering EMEA.<br>
Office: +44 (0) 2920 528500 | Direct: +44 (0) 2920 528523 <br>
Email: aweeks@hidglobal.com</span><span style="color:#1F497D;mso-fareast-language:EN-GB"><br>
<br>
</span><a href="http://www.hidglobal.com/"><span style="color:#05549C;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="234" height="36" style="width:2.4375in;height:.375in" id="Picture_x0020_1" src="cid:image001.gif@01D4B4D0.5959ED90" alt="HID Global Logo"></span></a><span style="color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7F7F7F;mso-fareast-language:EN-GB">HID Global, 3 Cae Gwrydd, Green Meadow Springs, Cardiff, CF15 7AB , United Kingdom<br>
</span></b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-GB"><a href="http://www.hidglobal.com/"><span style="color:#05549C">www.hidglobal.com</span></a></span><span style="color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><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 lang="EN-US" style="color:windowtext;mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:EN-GB"> users <users-bounces@lists.scilab.org>
<b>On Behalf Of </b>Samuel Gougeon<br>
<b>Sent:</b> 25 January 2019 12:58<br>
<b>To:</b> Users mailing list for Scilab <users@lists.scilab.org><br>
<b>Subject:</b> Re: [Scilab-users] 4-D plots.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Le 25/01/2019 à 11:01, Adrian Weeks a écrit :<span style="font-size:12.0pt;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I want to plot a function of three independent variables ( v = f(x, y, z) ) so that I can visualize it.<o:p></o:p></p>
<p class="MsoNormal">Essentially, this requires a 4-D plot but I can do it by using param3d to give me three independent axes then representing the value of the function at each point by using the colour or size of the dot.<o:p></o:p></p>
<p class="MsoNormal">This all works nicely but the problem is the slowness of the plotting operation:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">for i = 1: size(dots, 'r') do<o:p></o:p></p>
<p class="MsoNormal"> param3d(dots(i, 1), dots(i, 2), dots(i, 3));<o:p></o:p></p>
<p class="MsoNormal"> pl = gce();<o:p></o:p></p>
<p class="MsoNormal"> pl.line_mode = 'off';<o:p></o:p></p>
<p class="MsoNormal"> pl.mark_mode = 'on';<o:p></o:p></p>
<p class="MsoNormal"> pl.mark_size_unit = 'point';<o:p></o:p></p>
<p class="MsoNormal"> pl.mark_size = 10; // Using dot colour to display the dependent variable<o:p></o:p></p>
<p class="MsoNormal"> pl.mark_foreground = dots(i, 4);<o:p></o:p></p>
<p class="MsoNormal">// pl.mark_size = dots(i, 4); // Using dot size to display the dependent variable<o:p></o:p></p>
<p class="MsoNormal">// pl.mark_foreground = size(cmap, 'r') - 1;<o:p></o:p></p>
<p class="MsoNormal">end<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Is it possible to 'vectorize' this operation ?<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><br>
Hello Adrian,<br>
<br>
You may have a look to <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.scilab.org%2Fdocs%2F6.0.1%2Fen_US%2Fscatter3.html&data=02%7C01%7C%7C6f31fd12b3ae49d2e67808d682c4e19d%7Cf0bdc1c951484f86ac40edd976e1814c%7C0%7C0%7C636840179457435675&sdata=92xYW4zGdXjwDUGv2pIERC1kwbElwCvi2CFz8PL9NLk%3D&reserved=0">
https://help.scilab.org/docs/6.0.1/en_US/scatter3.html</a><br>
<br>
Regards<br>
Samuel<o:p></o:p></span></p>
</div>
</body>
</html>