Python Matplotlib hangs when asked to plot a second chart (after closing first chart window)

后端 未结 6 1084
不知归路
不知归路 2021-02-14 18:09

Weird behaviour, I\'m sure it\'s me screwing up, but I\'d like to get to the bottom of what\'s happening:

I am running the following code to create a very simple graph

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-14 18:29

    Apparently, this is caused by a bug in the tkinter backend. See, e.g., https://bugs.launchpad.net/ubuntu/+source/matplotlib/+bug/313834 . It's being worked on... If you can regress to a slightly older tkinter library, that should be a workaround for the time-being (I ran into this same thing a couple of weeks ago, and that was my only hope).

提交回复
热议问题