Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 512b5d7

Browse files
committed
Merge pull request #4945 from jrevans/issue13
FIX: qt backend default bbox not set when blitting Makes the qt backends consistent with gtk3/wx
2 parents 3520e94 + ab27719 commit 512b5d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/backends/backend_qt5agg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ def blit(self, bbox=None):
153153
"""
154154
Blit the region in bbox
155155
"""
156+
# If bbox is None, blit the entire canvas. Otherwise
157+
# blit only the area defined by the bbox.
158+
if bbox is None and self.figure:
159+
bbox = self.figure.bbox
160+
156161
self.blitbox = bbox
157162
l, b, w, h = bbox.bounds
158163
t = b + h

0 commit comments

Comments
 (0)