我曾经在 Matlab 中工作,在使用函数进行调试期间可视化中间结果非常方便(当使用大数组/矩阵和嵌套函数时)plot。
plot
在Python中,我无法在调试模式下绘制任何内容:带有图形图的窗口永远不会加载(我使用Spyder IDE进行编码和matplotlib.pyplot绘图)。
matplotlib.pyplot
在调试嵌套函数和类时,这确实很烦人。有谁知道一个好的解决方案吗?当然,我总是可以输出中间结果,但这并不方便。
谢谢,米哈伊尔
python debugging matplotlib
debugging ×1
matplotlib ×1
python ×1