Re: [Matplotlib-users] getting a subregion with the cursor

2008-07-16 Thread John Hunter
On Wed, Jul 16, 2008 at 7:36 AM, Ken Dere <[EMAIL PROTECTED]> wrote: > I would like to be able to call something like: > >> sub = getSub(myImage) > > and then click my cursor on two places in an image and have that subregion > returned as sub. I would also like to be able to do this with a single

[Matplotlib-users] getting a subregion with the cursor

2008-07-16 Thread Ken Dere
I would like to be able to call something like: > sub = getSub(myImage) and then click my cursor on two places in an image and have that subregion returned as sub. I would also like to be able to do this with a single statement rather doing z=connect('button_press_event',getSub). Seems like s