<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 25/01/2019 à 11:01, Adrian Weeks a
écrit :<br>
</div>
<blockquote
cite="mid:690097ba0e4049448963c4d725ed64c1@hidglobal.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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;
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@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]-->
<div class="WordSection1">
<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 ?</p>
</div>
</blockquote>
<br>
Hello Adrian,<br>
<br>
You may have a look to
<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.0.1/en_US/scatter3.html">https://help.scilab.org/docs/6.0.1/en_US/scatter3.html</a><br>
<br>
Regards<br>
Samuel<br>
<br>
</body>
</html>