在深度学习数据可视化过程中,引入了Python绘图模块Matplotlibimport matplotlib as plt
使用过程中调用 fig = plt.figure(),
报错显示:
AttributeError: module ‘matplotlib’ has no attribute ‘figure’
解决办法为:import matplotlib.pyplot as plt
在深度学习数据可视化过程中,引入了Python绘图模块Matplotlibimport matplotlib as plt
使用过程中调用 fig = plt.figure(),
报错显示:
AttributeError: module ‘matplotlib’ has no attribute ‘figure’
解决办法为:import matplotlib.pyplot as plt