Matplotlib引入报错解决办法

在深度学习数据可视化过程中,引入了Python绘图模块Matplotlib

import matplotlib as plt

使用过程中调用 fig  = plt.figure(),报错显示:

AttributeError: module 'matplotlib' has no attribute 'figure'

通过stackoveflow上的解决办法修改为:

import matplotlib.pyplot as plt,错误解决

原文地址:

https://stackoverflow.com/questions/45150238/error-with-matplotlib-show-module-matplotlib-has-no-attribute-show

你可能感兴趣的:(Matplotlib引入报错解决办法)