ValueError: x and y must have same first dimension
使用matplotlib进行图形绘制,在执行plt.plot(x,y)的时候,遇见:ValueError: x and y must have same first dimension, but have shapes (19,) and (20,)解决办法:错误提示是x,y两个的维度不一致,一个是19, 另一个是20,因此,将x,y的变量值改为相同的个数即可。...
·
使用matplotlib进行图形绘制,在执行plt.plot(x,y)的时候,遇见:
ValueError: x and y must have same first dimension, but have shapes (19,) and (20,)
解决办法:
错误提示是x,y两个的维度不一致,一个是19, 另一个是20,因此,将x,y的变量值改为相同的个数即可。
更多推荐

所有评论(0)