Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45243eb commit 81d5a24Copy full SHA for 81d5a24
1 file changed
lib/matplotlib/backends/backend_qt5agg.py
@@ -6,8 +6,9 @@
6
7
from matplotlib.externals import six
8
9
-import sys
10
import ctypes
+import sys
11
+import traceback
12
13
from matplotlib.figure import Figure
14
@@ -178,6 +179,9 @@ def __draw_idle_agg(self, *args):
178
179
try:
180
FigureCanvasAgg.draw(self)
181
self.update()
182
+ except Exception:
183
+ # Uncaught exceptions are fatal for PyQt5, so catch them instead.
184
+ traceback.print_exc()
185
finally:
186
self._agg_draw_pending = False
187
0 commit comments