unresolved reference when using pylab
<p>Recently, I want to use python do some image processing. I choose <a href="http://programmingcomputervision.com/" rel="nofollow">programming computer vision with python</a> to begin. Following is a code example in this book: </p>

<pre><code>from PIL import Image
from pylab import *

im = array(Image.open('bird.jpg').convert('L'))

figure()

gray()

contour(im, origin='image')
axis('equal')
axis('off')
</code></pre>

<p>I have imported <code>pylab</code>, when I run it in pychar, all commands like array, figure, gray, contour, and axis tell me <code>unresolved reference</code>.</p>

<p>When I run it in terminal of ubuntu: python .py
it said that <code>name 'array' is not defined.</code></p>

<p>Can anyone help me figure it out? Thanks in advance.</p>