I am trying to represent points in 2d space with according label, I also want the points to have the same color as their label and finally I need the colors of the labels to be progressive.
I looked everywhere but I can't seem to find a solution. This is my current implementation :
for i in range(0, encoder.classes_.size):
plt.scatter(data_pca_reduced[i][0], data_pca_reduced[i][1],
label=i, cmap=plt.get_cmap('viridis'))
And this is the result :
As you can see the labels colors are not progressive.