the code to generate all the plots