参考博客: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 其中的勾取消,显示的图形如下: 相关文章: 2021-04-17 2021-11-07 2021-11-29 2021-04-21 2021-09-30 2021-11-20 2021-12-04 2022-01-04