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

Skip to content

Commit 7edc583

Browse files
committed
PIL -> Pillow in docs and error messages
1 parent bf008b0 commit 7edc583

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/matplotlib/image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ def pilread(fname):
13041304
im = pilread(fname)
13051305
if im is None:
13061306
raise ValueError('Only know how to handle extensions: %s; '
1307-
'with PIL installed matplotlib can handle '
1307+
'with pillow installed matplotlib can handle '
13081308
'more images' % list(six.iterkeys(handlers)))
13091309
return im
13101310

@@ -1427,8 +1427,8 @@ def thumbnail(infile, thumbfile, scale=0.1, interpolation='bilinear',
14271427
make a thumbnail of image in *infile* with output filename
14281428
*thumbfile*.
14291429
1430-
*infile* the image file -- must be PNG or PIL readable if you
1431-
have `PIL <http://www.pythonware.com/products/pil/>`_ installed
1430+
*infile* the image file -- must be PNG or pillow-readable if you
1431+
have `pillow <http://python-pillow.github.io/>`_ installed
14321432
14331433
*thumbfile*
14341434
the thumbnail filename

lib/matplotlib/widgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ def __init__(self, ax, label, image=None,
171171
label : str
172172
The button text. Accepts string.
173173
174-
image : array, mpl image, PIL image
174+
image : array, mpl image, pillow image
175175
The image to place in the button, if not *None*.
176176
Can be any legal arg to imshow (numpy array,
177-
matplotlib Image instance, or PIL image).
177+
matplotlib Image instance, or pillow image).
178178
179179
color : color
180180
The color of the button when not activated

0 commit comments

Comments
 (0)