运行程序显示错误:AttributeError: ‘Colorbar’ object has no attribute ‘set_clim’
解决:
是matplotlib版本过高所致
matplotlib3.3.0版本取消了Colorbar的set_clim方法,因此需要降低版本3.2.0即可解决问题
首先
pip uninstall matplotlib
之后
pip install matplotlib==3.2.0
python AttributeError: ‘Colorbar‘ object has no attribute ‘set_clim‘
最新推荐文章于 2023-12-28 21:16:43 发布
