plot 3 legend fixed