Does ArtistAnimation work when using the "contourf" method? I'm trying to build an MP4 animation of a model forecast.
I'm using an approach similar that is similar to that shown on one of the MetPy Monday video series where you append the plots to an empty artist array (for radar plots). Radar/satellite plots seem to build the animation successfully because they use "pcolormesh", but the same doesn't hold true for model plots where I'm using "contourf".
When executing this code in JupyterLab,
plt.rcParams['animation.html'] = 'jshtml'
anim = ArtistAnimation(fig, artists, interval=100, blit=False)
anim
I see this at the end of the stack trace:
AttributeError: 'QuadContourSet' object has no attribute 'set_visible'
An old thread on stackoverflow made an attempt at solving this issue: https://github.com/matplotlib/matplotlib/issues/6139
When implementing these fixes, the set_visible attribute error no longer appears, but this appears instead:
AttributeError: 'QuadContourSet' object has no attribute 'get_figure'
Not sure where to go from here. If there's good news, I am seeing all of the data from each time step plot all at once on the map (so the data retrieval is OK), but something is up with ArtistAnimation and how it works with contourf method. Any guidance or helpful hints would be awesome!