您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

如何在Python中用空圆圈绘制散点图?

如何在Python中用空圆圈绘制散点图?

From thedocumentation 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 np

x = 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”和标记面颜色

python 2022/1/1 18:32:59 有530人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶