This code shows how to create GIFs in Python using two methods:
- Compiling existing static plots or pictures
- Creating a function to generate the plots
See my Medium article for an in-depth explaination: https://medium.com/towards-data-science/how-to-make-gifs-in-python-664d15ed4256