@@ -622,14 +622,15 @@ def _init_legend_box(self, handles, labels):
622622 #xdescent, ydescent, width, height,
623623 fontsize ,
624624 handlebox )
625+
625626 handle_list .append (handle )
626627
627628 handleboxes .append (handlebox )
628629
629630 if len (handleboxes ) > 0 :
630631
631632 # 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
633634 # (num_smallcol) columns will have (nrows) rows.
634635 ncol = min (self ._ncol , len (handleboxes ))
635636 nrows , num_largecol = divmod (len (handleboxes ), ncol )
@@ -685,7 +686,6 @@ def _init_legend_box(self, handles, labels):
685686 self .texts = text_list
686687 self .legendHandles = handle_list
687688
688-
689689 def _auto_legend_data (self ):
690690 """
691691 Returns list of vertices and extents covered by the plot.
@@ -785,7 +785,6 @@ def get_window_extent(self, *args, **kwargs) :
785785 'return a extent of the the legend'
786786 return self .legendPatch .get_window_extent (* args , ** kwargs )
787787
788-
789788 def get_frame_on (self ):
790789 """
791790 Get whether the legend box patch is drawn
@@ -809,7 +808,6 @@ def get_bbox_to_anchor(self):
809808 else :
810809 return self ._bbox_to_anchor
811810
812-
813811 def set_bbox_to_anchor (self , bbox , transform = None ):
814812 """
815813 set the bbox that the legend will be anchored.
@@ -841,8 +839,6 @@ def set_bbox_to_anchor(self, bbox, transform=None):
841839 self ._bbox_to_anchor = TransformedBbox (self ._bbox_to_anchor ,
842840 transform )
843841
844-
845-
846842 def _get_anchored_bbox (self , loc , bbox , parentbbox , renderer ):
847843 """
848844 Place the *bbox* inside the *parentbbox* according to a given
0 commit comments