On Sun, Jun 29, 2008 at 2:09 PM, sordnay <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I have a little problem, I've been unable to solve, maybe someone can help
> me out.
> I have several figures opened, but when I use gcf() I get handle of the last
> opened figure instead of the active one...
> i.e. when intercepting a button_press_event, gcf().number returns the number
> of the last figure, not the number of the figure over which I clicked
> (different from last one

gcf is written to return the last figure activated or created by the
"figure" command.  It would be fairly trivial to add support for
making the last clicked figure the active one, but it seems like a
reasonable thing to do (does anyone know what matlab does?).  Since
gcf emulates a matlab function, I'd like to hew fairly closely to
that.

JDH

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to