我正在尝试从一个GEOJSON文件中加载和显示我感兴趣的区域。我的代码如下
country = gpd.read_file(os.path.join('C:/area.geojson'))
country_shape = country.geometry.values[-1]
country.plot()
plt.axis('off');我知道这个错误
ValueError: 'box_aspect' and 'fig_aspect' must be positive任何帮助都行!
发布于 2021-12-15 12:43:43
我有一个类似的问题,并找到了答案here。尝试:
country.plot(aspect=1)
https://stackoverflow.com/questions/67693007
复制相似问题