... matplot gif.

An image can say a thousand words. But sometimes having a gif can make it just a bit easier. In this series of video's we'll highlight a tool called gif that makes it easy to turn matplotlib plots into gifs.


To get started with the basic chart you can run this;

import numpy as np
import matplotlib.pylab as plt

def frame(i):
    x = np.linspace(0, 2*np.pi, 100)
    y = np.sin(x)
    plt.plot(x, y)
    plt.scatter([x[i]], [y[i]]);


Feedback? See an issue? Something unclear? Feel free to mention it here.

If you want to be kept up to date, consider getting the newsletter.