Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

matplotlib not displaying image on Jupyter Notebook

$
0
0

I am using ubuntu 14.04 and coding in jupyter notebook using anaconda2.7 and everything else is up to date . Today I was coding, every thing worked fine. I closed the notebook and when I reopened it, every thing worked fine except that the image was not being displayed.

%matplotlib inlineimport numpy as npimport skimagefrom skimage import datafrom matplotlib import pyplot as plt%pylab inlineimg = data.camera()plt.imshow(img,cmap='gray')

this is the code i am using, a really simple one but doesn't display the image

<matplotlib.image.AxesImage at 0xaf7017ac>

this is displayed in the output areaplease help


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>