引入Python绘图模块Matplotlib:
import matplotlib as plt
使用过程中调用 fig = plt.figure(),报错显示:
TypeError: 'module' object is not callable
在网上查到的解决办法为,修改引入语句如下:
import matplotlib.pyplot as plt,错误解决
原文地址:
https://www.jianshu.com/p/8f94b1e69f95
引入Python绘图模块Matplotlib:
import matplotlib as plt
使用过程中调用 fig = plt.figure(),报错显示:
TypeError: 'module' object is not callable
在网上查到的解决办法为,修改引入语句如下:
import matplotlib.pyplot as plt,错误解决
原文地址:
https://www.jianshu.com/p/8f94b1e69f95