update generate_plots