Skip to content

Commit 7007c5c

Browse files
authored
Merge pull request matplotlib#23881 from oscargus/pillowversionhandling
Fix Pillow compatibility in example
2 parents 4487c70 + 45c569c commit 7007c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/introductory/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
from PIL import Image
246246

247247
img = Image.open('../../doc/_static/stinkbug.png')
248-
img.thumbnail((64, 64), Image.Resampling.LANCZOS) # resizes image in-place
248+
img.thumbnail((64, 64)) # resizes image in-place
249249
imgplot = plt.imshow(img)
250250

251251
###############################################################################

0 commit comments

Comments
 (0)