Hi all, Following a discussion with a Spyder user regarding simple animations with Matplotlib, I took a very quick look at the Qt4's backend source code to see if it was possible to make the following code work (which is working with the TkAgg backend but not the Qt4 backend): http://www.scipy.org/Cookbook/Matplotlib/Animations#head-e50abcca4333d3d76b3f2bb66ef00f15c6b4dbbc
Apparently, to make it work with the Qt4 backend, one simply has to add: QtGui.QApplication.processEvents() to the method 'FigureCanvasQt.draw_idle' (matplotlib/backends/backend_qt4.py). I did not look further to see if this QApplication.processEvents call is affecting Matplotlib's performance in any way, but I guess that it won't make a big difference. Cheers, Pierre PS: I know that this example of animation is clearly not the most efficient way to animate a Matplotlib figure (and that it's very ugly from a GUI programming point of view!): the 'animation_blit_qt4.py' example is probably the recommended way but the simple example above is some much simpler for beginners. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users