import matplotlib.pyplot as plt
...
plt.show()

进行如下设置:

File->Settings->Tools->Python Scientific,取消掉Show plots in toolwindow选项

相关文章: