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

浙公网安备 33010602011771号