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.
2 parents 09e044c + fb2e928 commit c8c6fbdCopy full SHA for c8c6fbd
lib/matplotlib/backends/backend_qt5agg.py
@@ -71,7 +71,9 @@ def paintEvent(self, e):
71
In Qt, all drawing should be done inside of here when a widget is
72
shown onscreen.
73
"""
74
- FigureCanvasAgg.draw(self)
+ # If we have not rendered the Agg backend yet, do so now.
75
+ if not hasattr(self, 'renderer'):
76
+ FigureCanvasAgg.draw(self)
77
78
# FigureCanvasQT.paintEvent(self, e)
79
if DEBUG:
0 commit comments