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:


To turn off interactive mode:


Interactive mode causing program run slower, so just activate when needed.