Script to generate the plot3.png