I have problem with pyplot window. When I try to change window size after ploting is done I get the following exception:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1532, in __call__
return self.func(*args)
File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 277, in resize
self.resize_event()
File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line 1788, in resize_event
self.callbacks.process(s, event)
File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 540, in process
proxy(*args, **kwargs)
File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 415, in __call__
return mtd(*args, **kwargs)
File "C:\Python27\lib\site-packages\matplotlib\animation.py", line 859, in _handle_resize
self._init_draw()
File "C:\Python27\lib\site-packages\matplotlib\animation.py", line 1077, in _init_draw
self._draw_frame(next(self.new_frame_seq()))
StopIteration
Ploting is done by:
self.ani = animation.FuncAnimation(self.fig, self._set_data, self._is_running(), interval=20, repeat=False, blit=True)
plt.show()
When ploting is done everything is ok. After maximizing window, exception is thrown, window is maximized but its all grey (no plot). Then I change its size again and everything goes back to normal and plot is drawn. Can someone point me whats wrong or where to look for answer?
OS: Windows 7
Python: 2.9 32b
Matplotlib ver: 1.4.2, backend: TkAgg