I am relatively new to Python (from Matlab). As one project, I am trying to create an animated graph of the correlation matrix over time. To make the stories good, I try the horn. I tried my best to make the animation at all (there were problems with the Matplotlib backend on Mac), but now with this code from the Internet a very simple animation works:
import numpy as np from matplotlib import pyplot as plt from matplotlib import animation nx = 50 ny = 50 fig = plt.figure() data = np.random.rand(nx, ny) im = plt.imshow(data) def init(): im.set_data(np.zeros((nx, ny))) def animate(i):
I tried to adapt this to seaborn , but to no avail. It seems that offshore works work in the areas, and it was much more difficult to revive them. The best I got once was a kind of recursive plot where seaborn.heatmaps were seaborn.heatmaps on top of each other. In addition, the im.set_data method was not available.
Any suggestions are much appreciated.
source share