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 > statement rather doing z=connect('button_press_event',getSub). Seems like > something like this should be around.
The RectangleSelector provides something close to this functionality -- check out http://matplotlib.sourceforge.net/examples/widgets/rectangle_selector.py ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users