Pycharm中matplotlib图形不显示 参考博客: https://blog.csdn.net/weixin_38410551/article/details/92794611?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.add_param_isCf 只需要在你显示图形的代码下边加上一句 plt.show() 记得导入包: import matplotlib.pyplot as plt 在这个工具栏的窗口显示看起来不太友好 可以通过File->Setting 将show plots in tool window 其中的勾取消,显示的图形如下: