第一步:
打开pycharm->preference->Tool->Python Scientific,取消勾选show plots in tool window
第二步:
I assume you have installed the pip matplotlib, there is a directory in you root called~/.matplotlib.
Create a file ~/.matplotlib/matplotlibrc there and add the following code: backend: TkAgg
MacOS 下pycharm 无法显示动图
本文介绍如何在PyCharm中禁用绘图在工具窗口的显示,通过调整设置并创建matplotlib配置文件,确保绘图不会干扰代码编辑过程。

被折叠的 条评论
为什么被折叠?



