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
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.
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.
Login to add comment