HELLO WORLD--一起加油(🍺)!|

kingwzun

园龄:3年6个月粉丝:111关注:0

解决报错:AttributeError: module ‘matplotlib’ has no attribute 'figure’

引入Python绘图模块Matplotlibimport
使用了: matplotlib as plt引用了模块。
使用过程中调用 fig = plt.figure()
报错显示:AttributeError: module ‘matplotlib’ has no attribute 'figure’

解决办法

使用import matplotlib.pyplot as plt引用模块,错误解决

本文作者:kingwzun

本文链接:https://www.cnblogs.com/kingwz/p/16217611.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   kingwzun  阅读(1071)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起