Pycharm plot Stand alone Window Display Actions

  • 2021-08-21 21:01:19
  • OfStack

Mainly


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

When executing, the graphics window is not independent. You can display the image in the independent window by setting the following settings

File- > Settings- > Tools- > Python Scientific

Remove the Show plots in toolwindow option

Additional knowledge: pandas can't use plot () method to display images in pycharm

Recently used pycharm, feeling good, is Series in pandas, plot () method of DataFrame does not show the picture to me ended, but I can draw in ipython

The previous code looked like this


import matplotlib.pyplot as plt
from pandas import DataFrame,Series 
Series([4,5,7]).plot()

I've been searching for a long time

Found that just add a

plt.show()

You can display the image


import matplotlib.pyplot as plt
from pandas import DataFrame,Series 
Series([4,5,7]).plot()
plt.show()

Oh!


Related articles: