saving . . . saved show() command not working... has been deleted. show() command not working... has been hidden .
show() command not working...
Title
Question
I am using IPYTHON 8.24.0 and while running the command as,
"%run -i plot_script.py"
it shows the blank plot. But when I run
"show()"
command, it does not show the graph plotted. I mean nothing changes..
Also, if there is any editor issue, how to solve that??

Python-3.4.3 Additional-features-of-IPython 07-08 min 10-20 sec 20-05-24, 9:08 p.m. Wvinisha10353@gmail.com

Answers:

There could be many reasons why the plot is not displaying correctly.Please go through the following reasons and check:
Make sure that you have imported the necessary libraries in your script "plot_script.py".
Check if your script "plot_script.py", includes plt.show() at the end.
Check if IPython is running in interactive mode for matplotlib. You can enable this mode by running: %matplotlib inline.


22-07-24, 3:57 p.m. ketki.naina


Log-in to answer to this question.