Skip to content

Commit

Permalink
Merge pull request #4945 from jrevans/issue13
Browse files Browse the repository at this point in the history
FIX: qt backend default bbox not set when blitting

Makes the qt backends consistent with gtk3/wx
  • Loading branch information
tacaswell committed Aug 17, 2015
2 parents 3520e94 + ab27719 commit 512b5d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/matplotlib/backends/backend_qt5agg.py
Expand Up @@ -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
Expand Down

0 comments on commit 512b5d7

Please sign in to comment.