[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

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Ben Axelrod
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)? What kind of format is the data in? Are there any standards for this type of thing? Do you have some

Re: [matplotlib-devel] PDF bug in stable release

2010-03-15 Thread Michael Hearne
I tried installing the two Mac OS X packages I found here. The .dmg file seems to have installed somewhere other than my EPD python path - doesn't seem to be in the Apple supplied Framework location either, so I'm sort of stumped on that one. The egg I tried to install with EPD's

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.

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Ian Thomas
Ben Axelrod baxel...@coroware.com 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

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 would

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread Ryan May
On Mon, Mar 15, 2010 at 12:37 PM, Ian Thomas ianthoma...@googlemail.com wrote: Ben Axelrod baxel...@coroware.com 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

Re: [matplotlib-devel] [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-15 Thread Eric Firing
Ian Thomas wrote: Chris Barker wrote: I think it would be great to have in MPL. What code are you using for the triangulation? Does it do constrained delauney? My code only does the contouring; you have to input the triangulation. In the examples included with the code I used

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 Thomasianthoma...@googlemail.com wrote: Ben Axelrodbaxel...@coroware.com 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

Re: [matplotlib-devel] Contouring unstructured triangular grids

2010-03-15 Thread John Hunter
On Mon, Mar 15, 2010 at 12:37 PM, Ian Thomas ianthoma...@googlemail.com 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

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

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

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

[matplotlib-devel] Proposal for Broken Axes

2010-03-15 Thread klukas
It's my understanding that there is no built-in method for generating a broken axis (where you skip over some range of values, indicating this with some graphical mark). I wanted to do this, so I've put together a function which seems to be fairly robust, and I thought I might propose it as a

Re: [matplotlib-devel] Proposal for Broken Axes

2010-03-15 Thread John Hunter
On Mon, Mar 15, 2010 at 3:16 PM, klukas klu...@wisc.edu wrote: It's my understanding that there is no built-in method for generating a broken axis (where you skip over some range of values, indicating this with some graphical mark).  I wanted to do this, so I've put together a function which

[matplotlib-devel] Patch to extend functionality of Figure.legend

2010-03-15 Thread Ray Speth
Hello all, I have written a small patch which extends the functionality of Figure.legend and pyplot.figlegend to match that of Axes.legend. This patch allows figlegend to automatically build a legend for lines with the label property set when figlegend is called without a list of strings or

Re: [matplotlib-devel] Proposal for Broken Axes

2010-03-15 Thread Andrew Straw
John Hunter wrote: On Mon, Mar 15, 2010 at 3:16 PM, klukas klu...@wisc.edu wrote: It's my understanding that there is no built-in method for generating a broken axis (where you skip over some range of values, indicating this with some graphical mark). I wanted to do this, so I've put