So, I started learning the matplotlib animation APIs, hoping to find a solution. The animation turned out to be exactly what I was looking for, although its use with the QuadMesh object in slices was not accurately documented. Here is what I came up with:
import matplotlib.pylab as plt from matplotlib import animation fig = plt.figure() plt.hold(True)
Note that blit must be False! Otherwise, it will yell at you that the QuadMesh object is not iterable.
I don’t have access to the radar yet, so I couldn’t test it against live data streams, but for a static file it still worked fine. While the data is being built, I can scale and pan the animation.
Good luck with your own animation / graphic ambitions!
source share