On 2009-05-23 21:35, Eric Carlson wrote:
> Hello Robert,
> I studied delaunay and mlab.griddata a bit while converting tinterp and
> saw the
>
> """
>           tri = delaunay.Triangulation(x,y)
>           # interpolate data
>           interp = tri.nn_interpolator(z)
>           zo = interp(xi,yi)
> """
> stuff. In studying delaunay, however, it was/is not clear to me how to
> set up the "triangulation" for
>
> delaunay.LinearInterpolator(triangulation, z, default_value=-1.#IND)
>
> without going through delaunay. Any chance you could give an example of
> using delaunay to linearly interpolate on mesh x,y assuming data_pts,
> triangles, f_at_data_points are already given?

Hmm, true. I violated my own principle of trying not to do too much in the 
constructor. However, you should be able to figure out how to use the 
underlying 
utility functions compute_planes() and linear_interpolate_grid() from the 
LinearInterpolator code and Triangulation's docstring to describe its 
attributes.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to