I would like to change colors in the next graph. I need to have yellow as green color, green as red and violet as blue.
I have the next code:
fig = plt.figure()
ax = fig.add_subplot(111)
scatter = ax.scatter( kmeans['Revenue'], kmeans['Frequency'],c=kmeans['Cluster'], s=15)
ax.set_xlabel('Recency')
ax.set_ylabel('Frequency')
plt.colorbar(scatter)
How could I change the colors?