matplotlib.pyplot.scatter()方法詳述
Parameters: |
|
---|---|
Other Parameters: |
|
想翻譯一下的,但是感覺用的詞不恰當,還是保留英文的吧!
放個例子:
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(10)
N = 50
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
area = (30 * np.random.rand(N))**2
plt.scatter(x, y, s=area, c=colors, alpha=0.5)
plt.show()