Hi Ben,

I use the version 0.99.3. 

Eric

--- En date de : Jeu 29.7.10, Benjamin Root <ben.r...@ou.edu> a écrit :

De: Benjamin Root <ben.r...@ou.edu>
Objet: Re: [Matplotlib-users] catching close figure event
À: "Pellegrini Eric" <ericpellegr...@yahoo.fr>
Cc: matplotlib-users@lists.sourceforge.net
Date: Jeudi 29 juillet 2010, 19h26

On Thu, Jul 29, 2010 at 12:18 PM, Pellegrini Eric <ericpellegr...@yahoo.fr> 
wrote:


Hello everybody,

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()
f.canvas.mpl_connect('close_event',my_function)

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

regards

Eric Pellegrini



Eric,

Which version of matplotlib are you using?  "close_event" is a valid event 
identifier.



Ben Root




      
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to