Script to generate plot3.png