ValueError: c of shape (1, 400) not acceptable as a color sequence for x with size 400, y with size 400
# Visualize the data:
plt.scatter(X[0, :], X[1, :], c=Y.reshape(400), s=40, cmap=plt.cm.Spectral);
Y改成Y.reshape(400)
ValueError: c of shape (1, 400) not acceptable as a color sequence for x with size 400, y with size 400
# Visualize the data:
plt.scatter(X[0, :], X[1, :], c=Y.reshape(400), s=40, cmap=plt.cm.Spectral);
Y改成Y.reshape(400)
绘制散点图
plt.scatter中marker的所有参数以及形状详解
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M