I am working on scattering plot using matplotlib and just simply testing several sample codes, but cannot show colors. Only showing gray. For example:
import numpy as np import matplotlib.pyplot as plt x = np.random.rand(100) y = np.random.rand(100) t = np.arange(100) plt.scatter(x, y, c=t) plt.show() This is the exactly same as this previous question about scatterplots and color mapping. See the execution result:

What's wrong with my setup? I am using Jupyter python 3.x version.
Thanks!
c=tis not really clear to me. Trycmap=plt.cm.hotinside the scatter command. It could be that you havecm.grayset earlier, and need to refresh the kernel.