@@ -622,14 +622,15 @@ def _init_legend_box(self, handles, labels):
622
622
#xdescent, ydescent, width, height,
623
623
fontsize ,
624
624
handlebox )
625
+
625
626
handle_list .append (handle )
626
627
627
628
handleboxes .append (handlebox )
628
629
629
630
if len (handleboxes ) > 0 :
630
631
631
632
# We calculate number of rows in each column. The first
632
- # (num_largecol) columns will have (nrows+1) rows, and remaing
633
+ # (num_largecol) columns will have (nrows+1) rows, and remaining
633
634
# (num_smallcol) columns will have (nrows) rows.
634
635
ncol = min (self ._ncol , len (handleboxes ))
635
636
nrows , num_largecol = divmod (len (handleboxes ), ncol )
@@ -685,7 +686,6 @@ def _init_legend_box(self, handles, labels):
685
686
self .texts = text_list
686
687
self .legendHandles = handle_list
687
688
688
-
689
689
def _auto_legend_data (self ):
690
690
"""
691
691
Returns list of vertices and extents covered by the plot.
@@ -785,7 +785,6 @@ def get_window_extent(self, *args, **kwargs) :
785
785
'return a extent of the the legend'
786
786
return self .legendPatch .get_window_extent (* args , ** kwargs )
787
787
788
-
789
788
def get_frame_on (self ):
790
789
"""
791
790
Get whether the legend box patch is drawn
@@ -809,7 +808,6 @@ def get_bbox_to_anchor(self):
809
808
else :
810
809
return self ._bbox_to_anchor
811
810
812
-
813
811
def set_bbox_to_anchor (self , bbox , transform = None ):
814
812
"""
815
813
set the bbox that the legend will be anchored.
@@ -841,8 +839,6 @@ def set_bbox_to_anchor(self, bbox, transform=None):
841
839
self ._bbox_to_anchor = TransformedBbox (self ._bbox_to_anchor ,
842
840
transform )
843
841
844
-
845
-
846
842
def _get_anchored_bbox (self , loc , bbox , parentbbox , renderer ):
847
843
"""
848
844
Place the *bbox* inside the *parentbbox* according to a given
0 commit comments