Add legend to scatter plot (PCA)
I recently proposed an easy way to add a legend to a scatter, see GitHub PR. This is still being discussed. In the meantime you need to manually create your legend from the unique labels in y. For each of them you’d create a Line2D object with the same marker as is used in the … Read more