[scilab-Users] Plotting 3D data

Celso Co celso.co at gmail.com
Mon Aug 17 19:08:56 CEST 2009


Dear Kaj,

I like your question. Please run my attached file and see if I answered you
correctly.

Regards,
celso


-----Original Message-----
From: Manuel JULIACHS [mailto:manuel.juliachs at scilab.org]
Sent: Monday, August 17, 2009 5:22 PM
To: users at lists.scilab.org
Subject: Re: [scilab-Users] Plotting 3D data


Kajetan Berlinger a écrit :
> Hi *,
>
> very simple questions from me as a newbie to Scilab ...
>
> (1) I just want to do a simple 3d plot of points randomly distributed in
space.
> How can I do that?
>
> (2) How can I get a plot that tries to fit a surface to these points?
>
> Thanks!
> kaj
>
>
Hello,

supposing your point coordinates are stored into 3 same-sized lists
x, y, and z, you have to execute the plot3d(x,y,z) command, retrieve
the drawed surface and modify its properties in order to display points
instead of facets:


plot3d(x,y,z);
s=gce();    // retrieves the surface object

s.surface_mode="off";
s.mark_mode="on";
s.mark_style=1;    // sets mark style to cross


Type:


help surface_properties;


for more information.


Concerning your second point, I'm not sure of how you can
fit a surface to a set of randomly distributed points.

The simplest thing to do would be to render facets using your points
as facet vertices, which is plot3d's default operation.

However, this requires you to know how points are connected to one
another, to be able to correctly specify facet vertices.

Best regards,


Manuel Juliachs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: A Point Plot Method.sci
Type: application/octet-stream
Size: 3205 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20090818/a2b70d34/attachment.obj>


More information about the users mailing list