Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 184911d

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

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎tutorials/intermediate/autoscale.py

Copy file name to clipboardExpand all lines: tutorials/intermediate/autoscale.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: tutorials/introductory/images.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.