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

Skip to content

Commit 184911d

Browse files
authored
Merge pull request #23855 from StefRe/DOC/deprecations
DOC: fix deprecation warnings
2 parents 9575fac + 93ee687 commit 184911d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tutorials/intermediate/autoscale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164

165165
fig, ax = plt.subplots()
166166
collection = mpl.collections.StarPolygonCollection(
167-
5, 0, [250, ], # five point star, zero angle, size 250px
167+
5, rotation=0, sizes=(250,), # five point star, zero angle, size 250px
168168
offsets=np.column_stack([x, y]), # Set the positions
169169
offset_transform=ax.transData, # Propagate transformations of the Axes
170170
)

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.ANTIALIAS) # resizes image in-place
248+
img.thumbnail((64, 64), Image.Resampling.LANCZOS) # resizes image in-place
249249
imgplot = plt.imshow(img)
250250

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

0 commit comments

Comments
 (0)