[Matplotlib-users] Polygon masking possible?

2008-01-22 Thread Søren Nielsen
Hi, I'm looking for a way to do masking of an Image.. I need to be able to make a circle / box or a user made polygon on an image using the mouse and retrieve the pixellocations of all pixels inside the masked area.. (which will then be processed later) Has anyone tried this? What is the easiest

Re: [Matplotlib-users] Polygon masking possible?

2008-01-22 Thread Angus McMorland
On 22/01/2008, Søren Nielsen [EMAIL PROTECTED] wrote: I'm looking for a way to do masking of an Image.. I need to be able to make a circle / box or a user made polygon on an image using the mouse and retrieve the pixellocations of all pixels inside the masked area.. (which will then be

Re: [Matplotlib-users] build matplotlib including backend wxPython

2008-01-22 Thread Michael Droettboom
This is a known bug in the Debian packaging of wxPython. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=326440 There are some workarounds mentioned in that post. Personally, I usually end up building wxPython from source (which doesn't have this header file problem) to keep up with its

Re: [Matplotlib-users] build matplotlib including backend wxPython

2008-01-22 Thread Ken McIvor
On Jan 22, 2008, at 11:00 AM, Matthias Michler wrote: I was not up to date with my installation and I tried to use the latest svn version (trunk) on my Debian etch. I have a problem to build matplotlib including support for wxPython as backend. The output is attached below. Actually

Re: [Matplotlib-users] Polygon masking possible?

2008-01-22 Thread Angus McMorland
Hi Søren, I've put this back on the list in case it's useful to anyone else, or if there are better suggestions or improvements around. Hope you don't mind. On 22/01/2008, Søren Nielsen [EMAIL PROTECTED] wrote: Yeah i'd like to see your code if I can.. import numpy as n def get_poly_pts(x, y,

[Matplotlib-users] Problem with cygwin/ipython interactive mode

2008-01-22 Thread djr
Hi there, I feel like I am really close to getting matplotlib working under cygwin/ipython (although the problem persists in the conventional python shell also). On a more general note it seems there are dozens of different ways to run matplotlib under windows. I used as many cygwin packages as