Add legend to x y axis