Add legend to plot.