Re: [Matplotlib-users] plot a triangular mesh

2009-05-26 Thread Robert Kern
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.

Re: [Matplotlib-users] plot a triangular mesh

2009-05-25 Thread Robert Cimrman
Ondrej Certik wrote: On Fri, May 22, 2009 at 3:37 PM, Ondrej Certik ond...@certik.cz wrote: Thanks a lot John. I tried that and it does what I want. I just need to convert and probably average my 3 different values at the 3 vertices of the triangle and color the triangle with that color. When

Re: [Matplotlib-users] plot a triangular mesh

2009-05-25 Thread Ondrej Certik
On Mon, May 25, 2009 at 1:03 AM, Robert Cimrman cimrm...@ntc.zcu.cz wrote: Ondrej Certik wrote: On Fri, May 22, 2009 at 3:37 PM, Ondrej Certik ond...@certik.cz wrote: Thanks a lot John. I tried that and it does what I want. I just need to convert and probably average my 3 different values at

Re: [Matplotlib-users] plot a triangular mesh

2009-05-23 Thread Eric Carlson
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

Re: [Matplotlib-users] plot a triangular mesh

2009-05-22 Thread John Hunter
On Thu, May 21, 2009 at 9:31 PM, Ondrej Certik ond...@certik.cz wrote: Hi, I have a set of vertices in 2D as triples (x, y, val), where the x, y are 2D coordinates and val is the scalar value of the finite element solution, here is an example: In [54]: l.get_vertices() Out[54]: array([[