Title: [Bug]: Pillow 11.3 raises a deprecation warning when using TkAgg · Issue #30280 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Pillow 11.3 raises a deprecation warning when using TkAgg · Issue #30280 · matplotlib/matplotlib
X Title: [Bug]: Pillow 11.3 raises a deprecation warning when using TkAgg · Issue #30280 · matplotlib/matplotlib
Description: Bug summary The 'mode' parameter from Image.fromarray has been deprecated, which is used in matplotlib to plot figures using the tkinter backend. Code for reproduction # python -Wd import matplotlib from matplotlib import pyplot matplotl...
Open Graph Description: Bug summary The 'mode' parameter from Image.fromarray has been deprecated, which is used in matplotlib to plot figures using the tkinter backend. Code for reproduction # python -Wd import matplotli...
X Description: Bug summary The 'mode' parameter from Image.fromarray has been deprecated, which is used in matplotlib to plot figures using the tkinter backend. Code for reproduction # python -Wd import m...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30280
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Pillow 11.3 raises a deprecation warning when using TkAgg","articleBody":"### Bug summary\n\nThe `'mode'` parameter from `Image.fromarray` [has been deprecated](https://pillow.readthedocs.io/en/stable/deprecations.html#image-fromarray-mode-parameter), which is used in matplotlib to plot figures using the tkinter backend.\n\n### Code for reproduction\n\n```Python\n# python -Wd\nimport matplotlib\nfrom matplotlib import pyplot\nmatplotlib.use(\"tkagg\")\npyplot.subplots()\n```\n\n### Actual outcome\n\n```\nDeprecationWarning: 'mode' parameter is deprecated and will be removed in Pillow 13 (2026-10-15)\n```\n\n### Expected outcome\n\nNo deprecation warning\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nUbuntu (this bug is also present on Windows)\n\n### Matplotlib Version\n\n3.10.3 (pillow==11.3.0)\n\n### Matplotlib Backend\n\nTkAgg\n\n### Python version\n\nPython 3.12.4\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nNone","author":{"url":"https://github.com/Vincent-Maladiere","@type":"Person","name":"Vincent-Maladiere"},"datePublished":"2025-07-09T14:58:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/30280/matplotlib/issues/30280"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ccf2c28f-0425-7156-8de6-0e2c9be80eb9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8072:1661F0:19ED159:226E94A:6A52CB1F |
| html-safe-nonce | 5351a91e786fa8b2891cbd5c69341653dd13b021f2098ee4741675b2c7db0eef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDcyOjE2NjFGMDoxOUVEMTU5OjIyNkU5NEE6NkE1MkNCMUYiLCJ2aXNpdG9yX2lkIjoiOTAwMjc2MjQ4NjU4ODU1ODExMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fc11842116bdecd66c780c4e7ca334567a99108644fea4a10a34dde9ac35d04b |
| hovercard-subject-tag | issue:3216242772 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/30280/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6e15bfd17bbd149b366e81222711d956b1f6c0a82703ed5bb363b45b1c5e1a9d/matplotlib/matplotlib/issues/30280 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6e15bfd17bbd149b366e81222711d956b1f6c0a82703ed5bb363b45b1c5e1a9d/matplotlib/matplotlib/issues/30280 |
| og:image:alt | Bug summary The 'mode' parameter from Image.fromarray has been deprecated, which is used in matplotlib to plot figures using the tkinter backend. Code for reproduction # python -Wd import matplotli... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Vincent-Maladiere |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width