Script to generate plot2.png