Use pylab to plot image returned from Scipy

matplotlib, python

Solution

It's not an error, just print the object that method returned.

There are two ways to show the figure:

Add pl.show() after calling pl.imshow(l)

Use ipython --pylab to open your python shell,

Problem

I'm working to migrate from MatLab to python in Sage. So I use these commands and I faced this error in Sage: ``` from scipy import misc l = misc.lena(); import pylab as pl pl.imshow(l) ``` The Error or message (i don't know) is: ``` matplotlib.image.AxesImage object at 0xb80198c ``` And it doesn't show any image

Original source