Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I = plt.imread('Rec-000026_16bit_counts.tif')
- plt.show(I)
- ---------------------------------------------------------------------------
- UnidentifiedImageError Traceback (most recent call last)
- <ipython-input-63-0e80e7a09c7a> in <module>
- ----> 1 I = plt.imread('Rec-000026_16bit_counts.tif')
- 2 plt.show(I)
- ~/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py in imread(fname, format)
- 2059 @docstring.copy(matplotlib.image.imread)
- 2060 def imread(fname, format=None):
- -> 2061 return matplotlib.image.imread(fname, format)
- 2062
- 2063
- ~/anaconda3/lib/python3.7/site-packages/matplotlib/image.py in imread(fname, format)
- 1462 raise ValueError('Only know how to handle PNG; with Pillow '
- 1463 'installed, Matplotlib can handle more images')
- -> 1464 with Image.open(fname) as image:
- 1465 return pil_to_array(image)
- 1466 from matplotlib import _png
- ~/anaconda3/lib/python3.7/site-packages/PIL/Image.py in open(fp, mode)
- 2929 warnings.warn(message)
- 2930 raise UnidentifiedImageError(
- -> 2931 "cannot identify image file %r" % (filename if filename else fp)
- 2932 )
- 2933
- UnidentifiedImageError: cannot identify image file 'Rec-000026_16bit_counts.tif'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement