@somatomat
Language agnostic programmer
Friday, May 26, 2017
Matplotlib show or imshow not working
When using matplotlib inside terminal console, and execute show or imshow, if we want to see the plot then we need to activate interactive mode:
matplotlib.pyplot.ion()
To turn off interactive mode:
matplotlib.pyplot.ioff()
Interactive mode causing program run slower, so just activate when needed.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)