FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Bug]: qt window blank after using save button · Issue #26272 · matplotlib/matplotlib · GitHub

Repository navigation

[Bug]: qt window blank after using save button #26272

Closed

Description

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

Expected outcome

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

Activity

  1. added
    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
    on Jul 6, 2023
  2. added this to the v3.8.0 milestone on Jul 6, 2023
  3. ksunden commented on Jul 6, 2023

    Member

    I do not seem to be able to reproduce in my main dev environment (python 3.11)

  4. rcomer commented on Jul 6, 2023

    Member

    I did reproduce using my mpl-dev environment (made using the conda yml).

    Edit: for me it took ~1 second after I closed the save dialog box before it went blank.

  5. oscargus commented on Jul 8, 2023

    Member

    Can reproduce on Win 11, Python 3.9 and Qt6.

  6. rcomer commented on Jul 8, 2023

    Member

    I reproduced on my work machine (RHEL7) but cannot reproduce on my Ubuntu laptop with either pyqt 5 or 6. I think @ksunden mentioned somewhere that he uses something related to Ubuntu?

  7. jklymak commented on Jul 9, 2023

    Member

    I can reproduce on my Mac dev environment if that helps

    pyqt                      5.15.7          py311h7203e35_3    conda-forge
    ...
    python                    3.11.0          h3ba56d0_1_cpython    conda-forge
    
  8. QuLogic commented on Jul 14, 2023

    Member

    Bisect points to #25713, so I'll do some investigation.

  9. added a commit that references this issue on Jul 14, 2023
    c7b2307
  10. added a commit that references this issue on Jul 14, 2023
    d9add67
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

    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


      Back | FazBrowse Home | New Git URL