Add a plot file to generate gifs and adapt C code