plot 3 code