Code to create plot4.png