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

Skip to content

Commit f5ae89a

Browse files
committed
fix legend bug ignoring CircleCollection
svn path=/branches/v0_99_maint/; revision=7403
1 parent bacfb89 commit f5ae89a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3819,6 +3819,8 @@ def _get_legend_handles(self):
38193819
if isinstance(c, mcoll.LineCollection)])
38203820
handles.extend([c for c in self.collections
38213821
if isinstance(c, mcoll.RegularPolyCollection)])
3822+
handles.extend([c for c in self.collections
3823+
if isinstance(c, mcoll.CircleCollection)])
38223824
return handles
38233825

38243826

0 commit comments

Comments
 (0)