As it is presented [here](http://matplotlib.org/examples/pylab_examples/legend_demo.html), the figure titled 'damped oscillation' does not fit with the corresponding code, which gives another result : 