Skip to content

Commit

Permalink
Merge pull request #5288 from mdboom/doc-build-fixes
Browse files Browse the repository at this point in the history
Doc build fixes
  • Loading branch information
mdboom committed Oct 22, 2015
1 parent 0672154 commit f03a5b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/pylab_examples/agg_buffer.py
Expand Up @@ -13,7 +13,7 @@
try:
from PIL import Image
except ImportError:
raise SystemExit("PIL must be installed to run this example")
raise SystemExit("Pillow must be installed to run this example")

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

Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/image.py
Expand Up @@ -1304,7 +1304,7 @@ def pilread(fname):
im = pilread(fname)
if im is None:
raise ValueError('Only know how to handle extensions: %s; '
'with PIL installed matplotlib can handle '
'with Pillow installed matplotlib can handle '
'more images' % list(six.iterkeys(handlers)))
return im

Expand Down Expand Up @@ -1427,8 +1427,8 @@ def thumbnail(infile, thumbfile, scale=0.1, interpolation='bilinear',
make a thumbnail of image in *infile* with output filename
*thumbfile*.
*infile* the image file -- must be PNG or PIL readable if you
have `PIL <http://www.pythonware.com/products/pil/>`_ installed
*infile* the image file -- must be PNG or Pillow-readable if you
have `Pillow <http://python-pillow.github.io/>`_ installed
*thumbfile*
the thumbnail filename
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/widgets.py
Expand Up @@ -171,10 +171,10 @@ def __init__(self, ax, label, image=None,
label : str
The button text. Accepts string.
image : array, mpl image, PIL image
image : array, mpl image, Pillow Image
The image to place in the button, if not *None*.
Can be any legal arg to imshow (numpy array,
matplotlib Image instance, or PIL image).
matplotlib Image instance, or Pillow Image).
color : color
The color of the button when not activated
Expand Down

0 comments on commit f03a5b3

Please sign in to comment.