Unable to use mathplotlib in scientific mode

Answered

Hi,

I am not sure if I have missed anything. I have just installed PyCharm 2017.3 today and when I import mathplotlib, and do plt.show() in my python console, nothing happened. 

The instruction below said that graph should be plotted in the SciView box:

https://www.jetbrains.com/help/pycharm/scientific-mode-support.html

I need help to get this work.

Best,

Louis

5
35 comments

We recently added better logging for SciView https://youtrack.jetbrains.com/issue/PY-41267
Please follow the steps from the ticket description and then file a new ticket attaching your idea.log so we can investigate.

0
Avatar
Permanently deleted user

For me

import matplotlib
matplotlib
.use('module://backend_interagg')

fixed this issue on MacOSX. The plot now shows up in SciView sidebar.

1

@... That worked for me, thanks! 

(pin that answer?)

0

For me the solution was to set "Run Configurations" in the upper bar on "Current File". I somehow changed it by mistake and the graphs would never show up.

0

Hi all, I had similar issue. In my case the interpreter was set incorrectly - used virtual one, which was not needed for the purposes of the project (simple data analysis and plotting graphs). Problem disapeared when I switched interpreter to the local one. Settings → Project → Python interpreter → Add local interpreter → System interpreter. Make sure that you have python installed. 

I hope it helps.

0

Please sign in to leave a comment.