📜  按值散点图颜色 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:14.497000             🧑  作者: Mango

代码示例3
import numpy as np
import matplotlib.pyplot as plt

# Generate data...
x = np.random.random(10)
y = np.random.random(10)

# Plot...
plt.scatter(x, y, c=y, s=500)
plt.gray()

plt.show()