On 2009-05-23 17:17, Eric Carlson wrote:
> I should read entire posts before sending people down the wrong
> pathways. I just happened to be working on a Python equivalent to MATLAB
> "triplot" stuff when I read your subject line and made the wrong
> assumptions. That program does just plot the edges, as you noted.
>
> I have attached a python program, much of which is a translation of a
> program I found at M*B central, contributed from the outside. Given a
> triangulation, it allows you to interpolate on a regular rectangular
> grid (dx=constant, dy=another constant). In your case, it should allow
> you to use your original triangulation, and should avoid the convex hull
> artifacts of your original griddata plot. I do not know if this new
> program will give you a figure that will look as good as your latest
> based on John's suggestion or not.

delaunay has a linear interpolator implemented in C++ that could be used for 
this purpose, too. The natural neighbor interpolator is only for Delaunay 
triangulations, but the linear interpolator should be usable for general 
triangulations.

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