Script to generate plot4.png file