Add legends to plot3 and plo4.