在使用python的matplotlib库作图时,报错显示TypeError: ‘module’ object is not callable

这是我原来的代码及报错显示:
python报错:TypeError: ‘module‘ object is not callable的解决方法
后面发现需要在导入时将matplotlib修改为matplotlib.pyplot即可
这是我修改后的代码及结果显示
python报错:TypeError: ‘module‘ object is not callable的解决方法

相关文章: