I have this code :
plt.scatter(data_projected[:,0],data_projected[:,1],c=digits.target ,edgecolors=\'none\',alpha=0.5,cmap=plt.cm.get_cmap(\'nipy_spectra
The first argument to plt.cm.get_cmap('nipy_spectral',10) is the name of a colormap. You can get a list of all available colormaps via
plt.cm.get_cmap('nipy_spectral',10)
import matplotlib.cm print(matplotlib.cm.cmap_d.keys())
or you may have a look at the colormap reference.