Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: plt.show() works intermittently in PyCharm #29882

Open
@prakhar-bip

Description

@prakhar-bip

Bug summary

When running Python scripts that utilizematplotlib.pyplot.show(), the plot display behavior in PyCharm is inconsistent. Sometimesplt.show() works and the plot window appears, but other times it does not display the plot, even when the script completes without errors.

Code for reproduction

plt.scatter(y_test,prediction)plt.xlabel('True Price')plt.ylabel('Predicted Price')plt.title('True vs Predicted Price')plt.show()

Actual outcome

UserWarning: FigureCanvasAgg xis non-interactive, and thus cannot be shown
plt.show()

Expected outcome

plt.show() sometimes does not display the plot in PyCharm, even though the script runs successfully.

Additional information

No response

Operating system

Windows

Matplotlib Version

3.10.0

Matplotlib Backend

Agg

Python version

3.12.3

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp