8000 Changed the 'blit' method to blit the entire figure if no bbox is spe… · matplotlib/matplotlib@ab27719 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab27719

Browse files
author
James Evans
committed
Changed the 'blit' method to blit the entire figure if no bbox is specified.
1 parent 7900ee4 commit ab27719

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)
0