Added legend to plot3