Matplotlib ion() and subprocesses

前端 未结 2 1099
失恋的感觉
失恋的感觉 2020-12-19 06:05

I am trying to have a plot pop up so the user can confirm that a fitting worked, but not hang up the entire process doing so. However, while the window appears, there is nev

2条回答
  •  时光说笑
    2020-12-19 06:39

    Instead of the mpl.draw(), try:

    mpl.pause(0.001)
    

    when using the matplotlib interactive mode ion(). Note that this only works from matplotlib 1.1.1 RC or higher.

提交回复
热议问题