Skip to content

tk window immediately resizes down to zero-height upon showing up. #16926

@anntzer

Description

@anntzer

Bug report

Bug summary

tk window (whether tkagg or mplcairo.tk) immediately resizes down to zero-height upon showing up.

Code for reproduction

$ MPLBACKEND=tkagg python -c "from pylab import *; plot(); show()"

Actual outcome

As described above.

Expected outcome

Window stays at original size.

Matplotlib version

  • Operating system: arch linux
  • Matplotlib version: master
  • Matplotlib backend (print(matplotlib.get_backend())): tkany
  • Python version: 38
  • Jupyter version (if applicable):
  • Other libraries:

This bisects to #16828 (attn @QuLogic), even though it's not clear how that's related... perhaps the dynamic changes to figure dpi confuse tk, but it's not clear why this is different from before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUI: tkRelease 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