Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc build fixes #5288

Merged
merged 5 commits into from Oct 22, 2015
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pillow may be capitalized.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure -- I can capitalize. It's not clear: they have inconsistent capitalization on their website: https://python-pillow.github.io/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was referring it to being the start of a sentence, not their "brand".


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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use https since it redirects there anyway.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of using https in external links where not strictly necessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the extra GET and redirect not reason enough?


*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