plot 4 code