Skip to content Skip to sidebar Skip to footer

Matplotlib Qt Imshow Animate

Does imshow animation work with the qt-backend? The following works fine in non-qt but does not animate using qt - just shows the last frame: img = standard_normal((40,40)) image =

Solution 1:

You either need to add a pause in the loop after the draw or use the matplotlib.animation module (doc)(tutorial).

possibly related matplotlib.pyplot/pylab not updating figure while isinteractive(), using ipython -pylab:

Solution 2:

I'll take a look at that but it looks like for using the qt backend the call to:

QApplication.ProcessEvents()

updates the imshow plot.

Post a Comment for "Matplotlib Qt Imshow Animate"