8000 [Bug]: qt window blank after using save button · Issue #26272 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Bug]: qt window blank after using save button #26272
Closed
@tacaswell

Description

@tacaswell

Bug summary

If you use the "save" button on Qt after the save the window is blank until a redraw is forced (resize the window, pan/zoom by guessing where the axes were, etc).

Code for reproduction

import matplotlib
import matplotlib.pyplot as plt

matplotlib.use('qtagg')
plt.plot(range(5))
plt.show()

# click the save button

Actual outcome

image

Expected outcome

image

Additional information

  • see it with both blocking and non-blocking show()
  • do not see it with tk (did not test other GUI frameworks)

I think this is a blocker for 3.8 as Qt is the backend a lot of people end up using (because it is the first in our list and conda install pyqt as a Matplotlib dependency)

Operating system

Arch

Matplotlib Version

3.8.0.dev1477+gb274f78060 (~main)

Matplotlib Backend

QtAgg (with pyqt6)

Python version

Python 3.13.0a0 (it is actually a branch from a PR)

Jupyter version

NA

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUI: QtRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0