Skip to content

[Bug]: Pillow 11.3 raises a deprecation warning when using TkAgg #30280

Closed

Description

@Vincent-Maladiere

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
matplotlib.use("tkagg")
pyplot.subplots()

Actual outcome

DeprecationWarning: 'mode' parameter is deprecated and will be removed in Pillow 13 (2026-10-15)

Expected outcome

No deprecation warning

Additional information

No response

Operating system

Ubuntu (this bug is also present on Windows)

Matplotlib Version

3.10.3 (pillow==11.3.0)

Matplotlib Backend

TkAgg

Python version

Python 3.12.4

Jupyter version

No response

Installation

None

Activity

  1. tacaswell commented on Jul 9, 2025

    @tacaswell
    Member

    Thank you for the report. I belevie this is already fixid by #30221 and will be in the next releases.

  2. added this to the v3.10.4 milestone on Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions