Why PyCharm jupyter notebooks give bad plots

I am using standard commands to plot but I am getting plots with black background and with grids which I did not ask for. Is this a bug with PyCharm new version? This was not the case before and I don't want to code unnecessarily to fix the plots with white background and black axis. I hope someone can help. Thank you.

1

Rubin Dasgupta 

This usually happens after a PyCharm update, but it’s not a matplotlib bug and not really a PyCharm “bug” either.

Easiest fix: turn off PyCharm’s Scientific plotting (Settings → Tools → Python Scientific), or reset the matplotlib style to default once. No need to rewrite all your plots.

Have a nice day!

Dashmetry

0

Thanks for the information. FYI for the version Pycharm 2025.3.1.1, Python Scientific or Scientific mode do not exist. However, the following commands used once works 

import matplotlib.pyplot as plt
plt.style.use('default')
1

Hi all!

Most probably the issue is caused by bug  PY-86782. We’re already working on the fix. Please vote for the issue to receive updates on its status. 

0

请先登录再写评论。