[Matplotlib-users] catching close figure event

2010-07-29 Thread Pellegrini Eric
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

Re: [Matplotlib-users] catching close figure event

2010-07-29 Thread Benjamin Root
On Thu, Jul 29, 2010 at 12:18 PM, Pellegrini Eric ericpellegr...@yahoo.frwrote: 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)

Re: [Matplotlib-users] catching close figure event

2010-07-29 Thread Ryan May
On Thu, Jul 29, 2010 at 12:26 PM, Benjamin Root ben.r...@ou.edu wrote: 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

Re: [Matplotlib-users] catching close figure event

2010-07-29 Thread Pellegrini Eric
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

Re: [Matplotlib-users] catching close figure event

2010-07-29 Thread Pellegrini Eric
Hi Ryan, 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 ? thanks Eric --- En date de : Jeu 29.7.10, Ryan May rma...@gmail.com a écrit : De: Ryan May rma...@gmail.com Objet: Re: [Matplotlib-users] catching