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
{{ message }}
Repository navigation
AttributeError: 'FigureCanvasQTAgg' object has no attribute 'callbacks' #1184
Calling pyplot.figure() multiple times causes a partial trace to appear in the terminal (partial because the entire chain of calls is not shown):
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_qt4.py", line 156, in
lambda: self.close_event())
File "/usr/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 1564, in close_event
self.callbacks.process(s, event)
AttributeError: 'FigureCanvasQTAgg' object has no attribute 'callbacks'
I was running into the same error upon quitting, so I suppressed it: #1098. Thank you for pointing out this method of triggering it, however, because it suggests that there may be a better way of handling it.
Activity
efiring commentedon Sep 1, 2012
I was running into the same error upon quitting, so I suppressed it: #1098. Thank you for pointing out this method of triggering it, however, because it suggests that there may be a better way of handling it.
tacaswell commentedon Nov 27, 2013
@mherman-nm Can you still reproduce this on a mac with a current version of mpl?
tacaswell commentedon Nov 26, 2014
Closing this as it is 2+ years old and there is a work-around in the code.