我想通过使用 2 个索引 [ChildrenHeight, ParentHeight] 作为分类变量:[性别] 来绘制散点图。然而,我已经厌倦了许多绘制具有不同边缘颜色的空圆的方法。
我努力了:
plt.scatter(X[:, 0], X[:, 1], c=y, marker = 'o',facecolors='none', cmap=plt.cm.Set1)
但它只是给了我一个完整的循环:
scatter matplotlib
matplotlib ×1
scatter ×1