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).
How can I force that the gcf() to return handle to the active figure? Is there any event trigered when a figure gets the focus? I don't think this should be the normal behaviour, but I have review my code and I haven't found how could I be forcing this... any idea about how to debug this? or if this is a bug? some data that may help: matplotlib version 0.98.1 interactive is True units is False platform is win32 numerix numpy 1.1.0 backend TkAgg version 8.4 -- View this message in context: http://www.nabble.com/gcf%28%29-problem-tp18184245p18184245.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users