Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Labels
Description
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