Plt.show() Not Working In Spyder Ide
I am new to Python and Spyder. I am using Python 2.7.13 and Spyder 3.1.4. I cannot get plt.show() to work on my data, and cannot reproduce a simple histogram example from the web
Solution 1:
Change your IPython console graphics settings.
If you are using Spyder here are the steps:
- Go to
Tools. - Go to
Preferences. - Select
IPython console. - Go to
Graphicstab. - Under the
Graphics backendsection, selectAutomaticas the backend type.
Then, restart your kernel.
Solution 2:
Use plt.draw() instead of plt.show(). This worked for me. Here is the reference what I found: https://github.com/spyder-ide/spyder/issues/2402

Post a Comment for "Plt.show() Not Working In Spyder Ide"