Code for generating plot2.png