[Scilab-users] 4-D plots.

Adrian Weeks aweeks at hidglobal.com
Fri Jan 25 18:06:46 CET 2019


Hello Samuel,

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...

Thanks again,
Adrian.

Adrian Weeks.
Engineer, Hardware Engineering EMEA.
Office: +44 (0) 2920 528500 | Direct: +44 (0) 2920 528523
Email: aweeks at hidglobal.com

[HID Global Logo]<http://www.hidglobal.com/>
HID Global, 3 Cae Gwrydd, Green Meadow Springs, Cardiff, CF15 7AB , United Kingdom
www.hidglobal.com<http://www.hidglobal.com/>

From: users <users-bounces at lists.scilab.org> On Behalf Of Samuel Gougeon
Sent: 25 January 2019 12:58
To: Users mailing list for Scilab <users at lists.scilab.org>
Subject: Re: [Scilab-users] 4-D plots.

Le 25/01/2019 à 11:01, Adrian Weeks a écrit :
Hello,

I want to plot a function of three independent variables ( v = f(x, y, z) ) so that I can visualize it.
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.
This all works nicely but the problem is the slowness of the plotting operation:

for i = 1: size(dots, 'r') do
                param3d(dots(i, 1), dots(i, 2), dots(i, 3));
                pl = gce();
                pl.line_mode = 'off';
                pl.mark_mode = 'on';
                pl.mark_size_unit = 'point';
                pl.mark_size = 10;                                                            // Using dot colour to display the dependent variable
                pl.mark_foreground = dots(i, 4);
//            pl.mark_size = dots(i, 4);                                               // Using dot size to display the dependent variable
//            pl.mark_foreground = size(cmap, 'r') - 1;
end

Is it possible to 'vectorize' this operation ?

Hello Adrian,

You may have a look to https://help.scilab.org/docs/6.0.1/en_US/scatter3.html<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>

Regards
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190125/20997bc3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2408 bytes
Desc: image001.gif
URL: <https://lists.scilab.org/pipermail/users/attachments/20190125/20997bc3/attachment.gif>


More information about the users mailing list