Re: [Matplotlib-users] gcf() problem

2008-07-01 Thread sordnay
I've submited the bug, I also tried to think about a solution, but this is not trivial at all for me hehe, I'm still learning how to use this wonderful piece of software (thank you all who did developed it btw) I think figure should simply call _pylab_helpers.Gcf.set_active(figManager)

Re: [Matplotlib-users] gcf() problem

2008-06-30 Thread John Hunter
On Sun, Jun 29, 2008 at 3:40 PM, Vincent Noel [EMAIL PROTECTED] wrote: in Matlab, gcf() returns a handle to the last activated figure, either by click or programmatically (e.g. figure(1), etc) OK, then it's a bug. Could you file a bug report on the sf bug tracker

[Matplotlib-users] gcf() problem

2008-06-29 Thread sordnay
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

Re: [Matplotlib-users] gcf() problem

2008-06-29 Thread Vincent Noel
On Sun, Jun 29, 2008 at 22:26, John Hunter [EMAIL PROTECTED] wrote: 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