From ab27719243cf9e280fc2d182d15919cb70f4de75 Mon Sep 17 00:00:00 2001 From: James Evans Date: Mon, 17 Aug 2015 15:25:55 -0700 Subject: [PATCH] Changed the 'blit' method to blit the entire figure if no bbox is specified. --- lib/matplotlib/backends/backend_qt5agg.py | 5 +++++ 1 file changed, 5 insertions(+) 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