Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

DOC: fix deprecation warnings#23855

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
greglucas merged 1 commit intomatplotlib:mainfromStefRe:DOC/deprecations
Sep 11, 2022

Conversation

StefRe
Copy link
Contributor

PR Summary

  • ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
  • Passing the rotation parameter ofinit() positionally is deprecated since Matplotlib 3.6; the parameter will become keyword-only two minor releases later.

PR Checklist

Tests and Styling

  • [N/A] Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

  • [N/A] New features are documented, with examples if plot related.
  • [N/A] New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [N/A] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).

- ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01).  Use Resampling.LANCZOS instead.- Passing the rotation parameter of __init__() positionally is deprecated  since Matplotlib 3.6; the parameter will become keyword-only two minor  releases later.
@greglucasgreglucas added this to thev3.6.0 milestoneSep 11, 2022
@greglucasgreglucas merged commit184911d intomatplotlib:mainSep 11, 2022
@greglucas
Copy link
Contributor

Thanks,@StefRe!

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestSep 11, 2022
@StefReStefRe deleted the DOC/deprecations branchSeptember 11, 2022 06:22
timhoffm pushed a commit that referenced this pull requestSep 11, 2022
Co-authored-by: Greg Lucas <greg.m.lucas@gmail.com>
@QuLogic
Copy link
Member

This broke with Pillow 9.0.1, which we still support (our minimum is 6.2):

WARNING: .../matplotlib/tutorials/introductory/images.py failed to execute correctly: Traceback (most recent call last):                                                                                                                                                                                         File ".../matplotlib/tutorials/introductory/images.py", line 248, in <module>    img.thumbnail((64, 64), Image.Resampling.LANCZOS)  # resizes image in-place  File ".../conda/envs/mpl38/lib/python3.8/site-packages/PIL/Image.py", line 65, in __getattr__    raise AttributeError(f"module '{__name__}' has no attribute '{name}'")AttributeError: module 'PIL.Image' has no attribute 'Resampling'

@oscargusoscargus mentioned this pull requestSep 13, 2022
6 tasks
@oscargus
Copy link
Member

I added a fix in#23881 so if that is OK, there is no need to follow up@StefRe

StefRe reacted with thumbs up emoji

melissawm pushed a commit to melissawm/matplotlib that referenced this pull requestDec 19, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@greglucasgreglucasgreglucas approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.6.0
Development

Successfully merging this pull request may close these issues.

4 participants
@StefRe@greglucas@QuLogic@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp