Attach legend only to scatterplot