Re: [Matplotlib-users] pyplot: Extract contourset without plotting

2011-01-27 Thread Paul Ivanov
Daniel Fulger, on 2011-01-27 18:16, wrote: Dear all, contourset = pyplot.contour(..) calculates the contourset but also grabs whatever figure is currently active *somewhere* in the entire code and whichever scope it was created. The contours are plotted into it. While I could

Re: [Matplotlib-users] pyplot: Extract contourset without plotting

2011-01-27 Thread Benjamin Root
On Thursday, January 27, 2011, Paul Ivanov pivanov...@gmail.com wrote: Daniel Fulger, on 2011-01-27 18:16,  wrote: Dear all, contourset = pyplot.contour(..) calculates the contourset but also grabs whatever figure is currently active *somewhere* in the entire code and whichever scope it

Re: [Matplotlib-users] pyplot: Extract contourset without plotting

2011-01-27 Thread Daniel Fulger
Dear all, contourset = pyplot.contour(..) calculates the contourset but also grabs whatever figure is currently active *somewhere* in the entire code and whichever scope it was created. The contours are plotted into it. While I could possibly live with that, I would really like to

Re: [Matplotlib-users] pyplot: Extract contourset without plotting

2011-01-27 Thread Eric Firing
On 01/27/2011 09:21 AM, Daniel Fulger wrote: Dear all, contourset = pyplot.contour(..) calculates the contourset but also grabs whatever figure is currently active *somewhere* in the entire code and whichever scope it was created. The contours are plotted into it. While I could possibly

Re: [Matplotlib-users] pyplot: Extract contourset without plotting

2011-01-27 Thread Paul Ivanov
Benjamin Root, on 2011-01-27 13:04, wrote: I believe he would rather call the core function that contour uses to do the heavy lifting. This was something that one can do in matlab, btw. I don't have access to the source right now. What does contour call to perform this calculation?

Re: [Matplotlib-users] pyplot: Extract contourset without plotting

2011-01-27 Thread Ian Thomas
Daniel, Following on from Eric's comments, attached is the simplest example I could come up with to do what you want. For non-filled contours, the 'segs' (last few lines of the file) should be fairly self-explanatory, and this is hopefully what you want. If you are after filled contours, you