Source: http://www.armelmartin.mon-site-a-moi.fr/doc/info/tp2_numpy_matplotlib.pdf