On Sun, Jun 29, 2008 at 2:09 PM, sordnay <so...@gm...> 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
|