Added legend to plot