解决ValueError: s must be a scalar, or the same size as x and y

谁借莪1个温暖的怀抱¢ 2022-12-31 12:21 221阅读 0赞

报错代码

  1. plt.scatter(x, y, c=colors, s=z*1000,alpha=0.9)

报错信息

  1. ValueError: s must be a scalar, or the same size as x and y

解决办法

  1. plt.scatter(x, y, c=colors, s=1000,alpha=0.9)

欢迎大家交流学习,任何问题都可以留言

发表评论

表情:
评论列表 (有 0 条评论,221人围观)

还没有评论,来说两句吧...

相关阅读