What I now need is a way of animating a video by looping through my lists and rendering a video.
I tried FuncAnimation and ArtistAnimation, but was not able to do it.
Is there a way of solving my task. And if so, what is the best approach to do it?
Thank you very much. I am now doing it this way, but I found a strange behaviour:
If list[0] contains only zeros and the following list elements contain random numbers, the animation will only show zeros.
If list[0] contains only 100s and the following list elements contain random numbers, the animation will only show 100s.
If list[0] contains only 0s and 1s, and the following list elements contain random numbers, the animation will only show 0s and 1s.
Somehow with im1 = ax1.imshow(list1[0], interpolation=None, animated=True) the plot is initialized and does not take any other value. I just don’t know haow to solve this issue.
Can you please post your code? It’s almost impossible to debug without knowing what you’re doing. Sample data is fine - a random array the same shape as your data or smaller.