1

I am trying to plot image using jupyter notebook.

import pylab as plt
import numpy as np
Z=np.array(((1,2,3,4,5),(4,5,6,7,8),(7,8,9,10,11)))
im = plt.imshow(Z, cmap='hot')
plt.colorbar(im, orientation='horizontal')
plt.show()

And I get some strange error. When I ran same code in Pycharm, It worked but wont work in jupyter notebook. .enter image description here

0 Answers0