Plotting a surface from points in the space

View: New views
3 Messages — Rating Filter:   Alert me  

Plotting a surface from points in the space

by Luc4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi! Is it possible to plot a colored surface taking points (x, y, z) which are not in a grid? They are taken from pdetool, so they covers a surface but are not in grid format. I can only plot them with points in gnuplot. Is it possible to interpolate them with a surface? I tried interp2, but it needs points to be in a grid.
Thanks! Bye!

Re: Plotting a surface from points in the space

by David Bateman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Luc4 wrote:
> Hi! Is it possible to plot a colored surface taking points (x, y, z) which
> are not in a grid? They are taken from pdetool, so they covers a surface but
> are not in grid format. I can only plot them with points in gnuplot. Is it
> possible to interpolate them with a surface? I tried interp2, but it needs
> points to be in a grid.
> Thanks! Bye!
>  

Try

help griddata

or

doc griddata

D.

--
David Bateman                                David.Bateman@...
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax)

The information contained in this communication has been classified as:

[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: Plotting a surface from points in the space

by Carlo de Falco-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 11/gen/08, at 16:34, Luc4 wrote:

> Hi! Is it possible to plot a colored surface taking points (x, y,  
> z) which
> are not in a grid? They are taken from pdetool, so they covers a  
> surface but
> are not in grid format. I can only plot them with points in  
> gnuplot. Is it
> possible to interpolate them with a surface? I tried interp2, but  
> it needs
> points to be in a grid.
> Thanks! Bye!

Hi Luca,

you might want to take a look at the FPL package in octave-forge,
it plots data on triangular grids defined by (almost) the same data  
structure
as that used by pdetool.

for example "FPL2pdesurf (msh, z)", where msh is a structure with the  
usual p,e,t fields of a pdetool mesh, does what you want.

if you do not want to install additional packages, a solution could  
be using the "trimesh" command which has been moved to core octave in  
recent versions, but this would plot just the grid without a coloured  
surface ( the equivalent of pdemesh rather than pdesurf)

Carlo
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave