AttributeError: 'GeoAxesSubplot' object has no attribute '_autoscaleXon'
下载cartopy库后想要测试其是否成功,结果报错了
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
ax = plt.axes(projection=ccrs.PlateCarree())
ax.coastlines()
plt.show()
这是我测试的代码
uninstall matplotlib之后在https://www.lfd.uci.edu/~gohlke/pythonlibs/
下载对应python版本的matplotlib
重新pip之后就解决啦
降低matplotlib版本解决了问题
更新最新版本的matplotlib
Python报错:AttributeError: ‘AxesSubplot‘ object has no attribute ‘bar_label‘_拔牙不打麻药的博客-CSDN博客