问题解决:input should be an array, list, tuple or scalar

在一个画图程序中出现了input should be an array, list, tuple or scalar的报错

解决方法:

1.在18行和19行后面加上.data

2.创建一个数组,将lons和lats放进数组。

修改代码如下:

 

猜你喜欢

转载自blog.csdn.net/Mluoo/article/details/129858998