script to plot the data