Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-05-13 Thread Ian Thomas
Patch committed as svn revision 8316. Ian -- ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-de

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-05-12 Thread Eric Firing
On 05/11/2010 10:18 PM, Ian Thomas wrote: > On 11 May, Eric Firing wrote: >> I am somewhat inclined to simply commit it, or to give you commit >> rights, in view not only of the triangular grid work but of the great >> work you did in fixing problems with cntr.c. Do you have a sourceforge >> login

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-05-12 Thread Michael Droettboom
Ian, I've added you as a developer, and you should now have SVN write access. (This may require explicitly setting a username in SVN the first time you commit.) Mike Ian Thomas wrote: > On 11 May, Eric Firing wrote: > >> I am somewhat inclined to simply commit it, or to give you commit >>

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-05-12 Thread Ian Thomas
On 11 May, Eric Firing wrote: > I am somewhat inclined to simply commit it, or to give you commit > rights, in view not only of the triangular grid work but of the great > work you did in fixing problems with cntr.c.  Do you have a sourceforge > login? I've created a sourceforge login with the use

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-05-11 Thread Chris Barker
Ian Thomas wrote: > On 15 April, Ian Thomas wrote: >> I've attached the patch for the new triangular grid functionality. > > As nobody has commented on the patch I submitted to add triangular > grid functions, I can only assume that nobody has looked at it. I have NO time to look at it, but I thi

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-05-11 Thread Eric Firing
On 05/10/2010 10:09 PM, Ian Thomas wrote: > On 15 April, Ian Thomas wrote: >> I've attached the patch for the new triangular grid functionality. > > As nobody has commented on the patch I submitted to add triangular > grid functions, I can only assume that nobody has looked at it. This > is a fina

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-05-11 Thread Ian Thomas
On 15 April, Ian Thomas wrote: > I've attached the patch for the new triangular grid functionality. As nobody has commented on the patch I submitted to add triangular grid functions, I can only assume that nobody has looked at it. This is a final friendly reminder that some people considered that

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-04-15 Thread Eric Firing
Ian Thomas wrote: > Eric Firing wrote: >> I've only glanced so far, but one thing that caught my eye is your >> documentation changes and code regarding the need for simply-connected >> paths. This is obsolete--mpl now handles multiply-connected paths. > > Thanks for clarifying this, I now unders

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-04-12 Thread Ian Thomas
Eric Firing wrote: > I've only glanced so far, but one thing that caught my eye is your > documentation changes and code regarding the need for simply-connected > paths.  This is obsolete--mpl now handles multiply-connected paths. Thanks for clarifying this, I now understand the 'point kinds' in c

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-04-11 Thread Eric Firing
Ian Thomas wrote: > Hello all, > > Attached is a patch file against svn head to add triangular grid > plotting and contouring. It will need some serious checking/reviewing > before it can be added to MPL. I've tested it on 32 and 64-bit Linux, > but I don't use other operating systems very often

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-16 Thread Ian Thomas
Replying to everyone at the same time: (spot the person in the UK!) Chris Barker wrote: > That would be better as (ntri, 3), to be compatible with the usual C > ordering of numpy arrays. Of course. John Hunter wrote: > I am a little concerned about the "hand wrapped python" part > because of the

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Eric Firing
Christopher Barker wrote: > John Hunter wrote: >> It would probably >> be beneficial, but by no means required, to use CXX to expose the C++ >> part to python so take a look if you are inclined. > > What about Cython -- is any one using Cython in MPL yet? No, not yet, but I think we should be loo

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Christopher Barker
John Hunter wrote: > It would probably > be beneficial, but by no means required, to use CXX to expose the C++ > part to python so take a look if you are inclined. What about Cython -- is any one using Cython in MPL yet? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Div

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Christopher Barker
Robert Kern wrote: > On 2010-03-15 13:30 PM, Ryan May wrote: > Are you looking at making it possible to >> construct a triangulation from the delaunay triangulation that is used >> by griddata? (Sorry, I didn't follow the thread that closely.) > > He's using matplotlib.delaunay. > right, and t

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread John Hunter
On Mon, Mar 15, 2010 at 12:37 PM, Ian Thomas wrote: > Before going ahead with this I wished to ascertain how much interest > there was for this functionality as I don't want to spend time doing > something that isn't wanted or needed. I'm definitely interested, but I defer to Eric as the ultimat

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Robert Kern
On 2010-03-15 13:30 PM, Ryan May wrote: > On Mon, Mar 15, 2010 at 12:37 PM, Ian Thomas > wrote: >> Ben Axelrod wrote: >>> I am a little unclear on what this is and what it is used for. >> >> It is used to generate contour plots for data that is defined on >> unstructured triangular grids. Curre

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Ryan May
On Mon, Mar 15, 2010 at 12:37 PM, Ian Thomas wrote: > Ben Axelrod wrote: >> I am a little unclear on what this is and what it is used for. > > It is used to generate contour plots for data that is defined on > unstructured triangular grids.  Currently mpl supports generating > contour plots on re

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Christopher Barker
Ian Thomas wrote: > Alternatively, if you want to specify your own > triangulation instead you can do that using a indices array of shape > (3, ntri) where ntri is the number of triangles, and indices[:, i] > defines the indices of the three points that the i-th triangle is > composed of. That wo

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Ian Thomas
Ben Axelrod wrote: > I am a little unclear on what this is and what it is used for. It is used to generate contour plots for data that is defined on unstructured triangular grids. Currently mpl supports generating contour plots on regular rectangular grids; if you have an unstructured grid you h

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Christopher Barker
Ben Axelrod wrote: > I am a little unclear on what this is and what it is used for. Is > this to visualize the triangular grid for things like Finite Element Analysis > (FEM) and Computational Fluid Dynamics (CFD)? In can be, yes -- though that's really only the part that renders the mesh. Contou

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Ben Axelrod
example code or images? Thanks, -Ben -Original Message- From: Ian Thomas [mailto:ianthoma...@googlemail.com] Sent: Monday, March 15, 2010 7:01 AM To: matplotlib-devel@lists.sourceforge.net Subject: [matplotlib-devel] Contouring unstructured triangular grids Hello all, I have some

[matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Ian Thomas
Hello all, I have some code to generate contour plots of unstructured triangular grids that I have volunteered to include in matplotlib. Some discussion of this has occurred in matplotlib-users, see http://sourceforge.net/mailarchive/forum.php?thread_name=hnbpkq%24o03%241%40dough.gmane.org&forum