问题
After installing Anaconda3 & PyCharm in new PC, I tried to test the same code as uploaded here
And I got a window like this.
But usually I use the plot window like this format (from google image search)
I think the first view is useful for checking all of the plots, but I'm already used to the second version, separated plot figure from PyCharm console, and I can use the control panel.
So I want to use PyCharm as in the second picture. How can I change my PyCharm settings to use the second version plot figure (extra window)?
回答1:
That's because PyCharm is opening it in Sciview. Go to Settings => search for Python Scientific. Uncheck the (only) box Show plots in toolwindows. Restart Pycharm. It should work like a charm ;)
Related to my answer here.
回答2:
According to this, you can manually change the backend to fix the issue:
matplotlib.use('Qt5Agg')
Thank you, @ImportanceOfBeingErnest, for digging up the thread.
来源:https://stackoverflow.com/questions/48334853/using-pycharm-i-want-to-show-plot-extra-figure-windows