Code to create plot3.png