From the
documentation
for scatter:
Optional kwargs control the Collection properties; in particular: edgecolors: The string ‘none’ to plot faces with no outlines facecolors: The string ‘none’ to plot unfilled outlines
Try the following:
import matplotlib.pyplot as plt import numpy as npx = np.random.randn(60) y = np.random.randn(60)plt.scatter(x, y, s=80, facecolors='none', edgecolors='r')plt.show()
注:对于其他类型的绘图,请参见[本
[发布](http://codingdict.com/questions/164817
使用“markeredgecolor”和
标记面颜色。



