Skip to content

The tight layout algorithm for displaying images in the tool window using the plt. show() statement in PyCharm seems to be problematic #188

Open
@459838764

Description

@459838764

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions