plt.scatter报错ValueError: s must be a scalar, or float array-like with the same size as x and y

plt.scatter(xArray,ySmoothedCopy,'b')

报错:
ValueError: s must be a scalar, or float array-like with the same size as x and y

原因,scatter函数没有严格参数输入格式

改正
plt.scatter(xArray,ySmoothedCopy,color='b',s= 0.5)

解决!

你可能感兴趣的:(Python,python,人工智能,开发语言)