(Feb-26-2021, 03:20 AM)Alienspecimen Wrote: it displays exactly the same result as before, when plt.show() was not commented out.No it depend of what environment(Editor/IDE/Notebook) you run code in.
If run code from command line it will display nothing.
The purpose
plt.show()
is to generate a way to display the result when no external environment is used.So if put code in a Notebook it disaply fine without
plt.show()
.But if i run same code from command line,it will display nothing without
plt.show()
.G:\div_code\div λ python mp_test.py # Nothing is shown