You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "D:\xxx\test\closefigureserror.py", line 19, in <module>
plt.show()
File "c:\***\lib\site-packages\matplotlib\pyplot.py", line 253, in show
return _show(*args, **kw)
File "c:\***\lib\site-packages\matplotlib\backend_bases.py", line 208, in show
cls.mainloop()
File "c:\***\lib\site-packages\matplotlib\backends\_backend_tk.py", line 1073, in mainloop
Tk.mainloop()
File "c:\***\lib\lib-tk\Tkinter.py", line 414, in mainloop
_default_root.tk.mainloop(n)
AttributeError: 'NoneType' object has no attribute 'tk'
in py3 (master):
Traceback (most recent call last):
File "D:\xxx\test\closefigureserror.py", line 19, in <module>
plt.show()
File "d:\***\matplotlib\lib\matplotlib\pyplot.py", line 254, in show
return _show(*args, **kw)
File "d:\***\matplotlib\lib\matplotlib\backend_bases.py", line 3275, in show
cls.mainloop()
File "d:\***\matplotlib\lib\matplotlib\backends\_backend_tk.py", line 1040, in mainloop
Tk.mainloop()
File "D:\***\Miniconda3\envs\mplgit\lib\tkinter\__init__.py", line 557, in mainloop
_default_root.tk.mainloop(n)
AttributeError: 'NoneType' object has no attribute 'tk'
The code works fine in Qt4Agg (with py2) or Qt5Agg (with py3)
Bug report
Bug summary
Closing the first of two pyplot figures in TkAgg backend, throws an error.
Code for reproduction
Actual outcome
in py2 (2.2.3):
in py3 (master):
The code works fine in Qt4Agg (with py2) or Qt5Agg (with py3)
Expected outcome
No error.
Matplotlib version
print(matplotlib.get_backend())
): TkAggThe text was updated successfully, but these errors were encountered: