Hi all,
I've just tried the Qt4 backend and noticed that, different from the
previous backend I was using, the last command of a script pylab.show()
does not raise the figures to the front (they show up but in the
background). This is the case at least on my OS X machine. I personally
feels like the figures taking becoming the active windows should be the
right behavior. In case, this is valuable to the project, please find
below at patch that achieves that behavior.
Regards,
-Gellule
Index: lib/matplotlib/backends/backend_qt4.py
===================================================================
--- lib/matplotlib/backends/backend_qt4.py (revision 7293)
+++ lib/matplotlib/backends/backend_qt4.py (working copy)
@@ -67,6 +67,7 @@
figManager = Gcf.get_active()
if figManager != None:
figManager.canvas.draw()
+ figManager.window.raise_()
if _create_qApp.qAppCreatedHere:
QtGui.qApp.exec_()
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel