imshow() function not working
You need to call plt.show()
to display the image. Or use ipython --pylab
for an interactive shell that is matplotlib
aware.
"Interactive mode may also be turned on via matplotlib.pyplot.ion()
, and turned off via matplotlib.pyplot.ioff()
" cf. matplotlib user guide.