Description
When I use statements such as plt. show() or fig.show() to display an image in the built-in tool window of PyCharm IDE, some of the drawing elements inside the image overlap and some of them move to the wrong position.
However, using savefig() to save images does not have this problem. The various drawing elements in the saved images do not overlap and are also in their respective positions. Running the same code in Jupyter Notebook in PyCharm produces various drawing elements in the generated images that are also normal. In addition, if the Show plots in tool window function is turned off (its path is File | Settings | Tools | Python Scientific | Show plots in tool window), the drawn images will also be normal.
In short, when I open the Show plots in tool window function, the drawn image will display the above error. If possible, I hope you can fix the error of using default tools to display images in PyCharm.