correspondent code for plot1.png