Saving data for plot1 and plot2