import matplotlib.pyplot as plt1 import matplotlib as mpl x = range(1,11) y = [11,22,13,45,3,2,3,4,5,6] plt1.plot(x,y) plt1.show()
x 和y 个数不一致就报错
ValueError: x and y must have same first dimension, but have shapes (10,) and (11,)
文章标签 matplotlib 文章分类 后端开发
import matplotlib.pyplot as plt1 import matplotlib as mpl x = range(1,11) y = [11,22,13,45,3,2,3,4,5,6] plt1.plot(x,y) plt1.show()
x 和y 个数不一致就报错
ValueError: x and y must have same first dimension, but have shapes (10,) and (11,)
下一篇:CMake 入门实战
本文介绍基于Python中的gdal模块,对大量长时间序列的栅格遥感影像文件,绘制其每一个波段中、若干随机指定的像元的时间序列曲线图的方法~
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M