Adds legend to plot3