Skip to content

Commit

Permalink
include legends as default_bbox_extra_artists
Browse files Browse the repository at this point in the history
  • Loading branch information
leejjoon committed Jan 31, 2012
1 parent 82b97d3 commit 565efe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/matplotlib/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8252,6 +8252,8 @@ def matshow(self, Z, **kwargs):

def get_default_bbox_extra_artists(self, renderer):
bbox_extra_artists = [t for t in self.texts if t.get_visible()]
if self.legend_:
bbox_extra_artists.append(self.legend_)
return bbox_extra_artists


Expand Down

0 comments on commit 565efe4

Please sign in to comment.