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

[Bug]: image alpha re-applied each draw? #29891

Closed
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.topic: images
Milestone
@rcomer

Description

@rcomer

Bug summary

Onmain, if I plot an RGBA image and then mess about with the gui window size, the image keeps getting darker.

Code for reproduction

importmatplotlib.pyplotaspltimportnumpyasnpnp.random.seed(42)rgba=np.random.random((2,2,4))fig,ax=plt.subplots()ax.imshow(rgba)plt.show()

Actual outcome

After resizing the window a lot

Image

Expected outcome

Image

Additional information

Bisects to#29776 (cc@anntzer)

The problem is specific to RGBA - I noticed it first with the code from#26092 (comment), where only the top two plots of the righthand column are affected.

Operating system

RHEL9

Matplotlib Version

main

Matplotlib Backend

qtagg

Python version

3.12.7

Jupyter version

n/a

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.topic: images

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp