bad luck, I use the version 0.99.3 ... and currently I must keep on using it ...
Would you see another way to proceed from matplotlib ?
--- En date de : Jeu 29.7.10, Ryan May <firstname.lastname@example.org> a écrit :
De: Ryan May <email@example.com>
Objet: Re: [Matplotlib-users] catching close figure event
À: "Pellegrini Eric" <firstname.lastname@example.org>
Cc: "Benjamin Root" <email@example.com>, firstname.lastname@example.org
Date: Jeudi 29 juillet 2010, 19h29
On Thu, Jul 29, 2010 at 12:26 PM, Benjamin Root <email@example.com>
On Thu, Jul 29, 2010 at 12:18 PM, Pellegrini Eric <firstname.lastname@example.org>
I would like to call a function when I close manually a window previously opened by a pylab.figure. I tried the following:
f = pylab.figure()
but it fails because the 'close_event' is not recognized as a valid event (button_press_event, axis_leave_event ...). Would you have any idea ?
thank you very much
Which version of matplotlib are you using? "close_event" is a valid event identifier.
It was added in the most recent 1.0, so make sure you have that.
Graduate Research Assistant
School of Meteorology
University of Oklahoma