Jupyter QtConsole 4.2.1 is embedded in QT 5.6.0 application. Execute following script in command window: get_ipython().run_line_magic('matplotlib', 'inline') import matplotlib.pyplot as plt x1=[1,2,3] ...
The first call to matshow() re-enables interactive mode after it has been disabled by matplotlib.interactive(False). In a Jupyter notebook, this has the result of a figure not intended for display ...
That line is only for jupyter notebooks, if you are using another editor, you'll use: plt.show() at the end of all your plotting commands to have the figure pop up in another window. There are two ...