Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e35625

Browse files
author
Steve Chaplin
committed
SC 04/11/2004
svn path=/trunk/matplotlib/; revision=659
1 parent 63498fd commit 3e35625

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

examples/image_demo3.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
from matplotlib.matlab import *
3-
import Image
3+
try:
4+
import Image
5+
except ImportError, exc:
6+
raise SystemExit("PIL must be loaded to run this example")
47

58
lena = Image.open('data/lena.jpg')
69
dpi = rcParams['figure.dpi']

0 commit comments

Comments
 (0)