Scatter points with colormap for increasing indices

Look at this one

x = range(20)
plt.scatter(x, x, c=x, cmap=plt.get_cmap('Blues'))

It seems you can just pass the indices to c argument