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!