@@ -167,6 +167,9 @@ def __init__(self, parent, handles, labels,
167167 # box, none use rc
168168 shadow = None ,
169169 title = None , # set a title for the legend
170+
171+ framealpha = None , #set frame alpha
172+
170173 bbox_to_anchor = None , # bbox that the legend will be anchored.
171174 bbox_transform = None , # transform for the bbox
172175 frameon = None , # draw frame
@@ -195,6 +198,7 @@ def __init__(self, parent, handles, labels,
195198 fancybox if True, draw a frame with a round fancybox.
196199 If None, use rc
197200 shadow if True, draw a shadow behind legend
201+ framealpha If not None, alpha channel for the frame.
198202 ncol number of columns
199203 borderpad the fractional whitespace inside the legend border
200204 labelspacing the vertical space between the legend entries
@@ -384,6 +388,9 @@ def __init__(self, parent, handles, labels,
384388 # init with null renderer
385389 self ._init_legend_box (handles , labels )
386390
391+ if framealpha is not None :
392+ self .get_frame ().set_alpha (framealpha )
393+
387394 self ._loc = loc
388395
389396 self .set_title (title )
0 commit comments