diff --git a/lib/matplotlib/backends/backend_qt5agg.py b/lib/matplotlib/backends/backend_qt5agg.py index 2ab431bfccaa..8d6638ad4e5c 100644 --- a/lib/matplotlib/backends/backend_qt5agg.py +++ b/lib/matplotlib/backends/backend_qt5agg.py @@ -153,6 +153,11 @@ def blit(self, bbox=None): """ Blit the region in bbox """ + # If bbox is None, blit the entire canvas. Otherwise + # blit only the area defined by the bbox. + if bbox is None and self.figure: + bbox = self.figure.bbox + self.blitbox = bbox l, b, w, h = bbox.bounds t = b + h