解决报错: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引用模块,错误解决

posted @ 2022-05-03 08:15  kingwzun  阅读(962)  评论(0编辑  收藏  举报