From: Nils W. <nw...@ia...> - 2008-11-06 12:09:28
|
Hi all, I tried to read a jpg file. How can fix the following problem ? File "test.py", line 15, in <module> im = imshow(lena, origin='lower') File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyplot.py", line 1915, in imshow ret = gca().imshow(*args, **kwargs) File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/axes.py", line 5498, in imshow im.set_data(X) File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/image.py", line 282, in set_data self._A = pil_to_array(A) File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/image.py", line 751, in pil_to_array x = toarray(im) File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/image.py", line 736, in toarray x_str = im.tostring('raw',im.mode,0,-1) File "/data/home/nwagner/local/lib/python2.5/site-packages/PIL/Image.py", line 513, in tostring self.load() File "/data/home/nwagner/local/lib/python2.5/site-packages/PIL/ImageFile.py", line 180, in load d = Image._getdecoder(self.mode, d, a, self.decoderconfig) File "/data/home/nwagner/local/lib/python2.5/site-packages/PIL/Image.py", line 375, in _getdecoder raise IOError("decoder %s not available" % decoder_name) IOError: decoder jpeg not available Is it possible to plot different jpg's in subplots ? Nils |