8000 Merge pull request #5288 from mdboom/doc-build-fixes · matplotlib/matplotlib@f03a5b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit f03a5b3

Browse files
committed
Merge pull request #5288 from mdboom/doc-build-fixes
Doc build fixes
1 parent 0672154 commit f03a5b3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/pylab_examples/agg_buffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
try:
1414
from PIL import Image
1515
except ImportError:
16-
raise SystemExit("PIL must be installed to run this example")
16+
raise SystemExit("Pillow must be installed to run this example")
1717

1818
plt.plot([1, 2, 3])
1919

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)
0