AttributeError: Unknown property axisbg

Deadly 提交于 2019-12-05 00:29:50

Replace the below line of code

ax = plt.axes(axisbg='#E6E6E6')

with

ax = plt.axes(facecolor='#E6E6E6')

axisbg is deprecated in matplotlib 2.0+ Use facecolor instead.

https://matplotlib.org/api/api_changes.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!