在写PyQt5时调用 plt.figure报错 'NoneType' object is not callable;
1. 经排查,有网络资源提示方法后去掉括号,如该链接:
(12条消息) 【Python】报错:TypeError: ‘NoneType‘ object is not callable问题解决_printf200的博客-CSDN博客
2. 后排查了在调用plt.figure方法时发现是方法名写错导致的报错:
原写法:plt.figure()
修改后:plt.Figure()
初始化Figure时调用的方法: