How to generate animations to make plots that update themselves