@@ -408,7 +408,7 @@ def legend(self, *args, **kwargs):
408
408
label
409
409
410
410
frameon : None or bool
411
- Control whether a frame should be drawn around the legend .
411
+ Control whether the legend should be drawn on a patch (frame) .
412
412
Default is ``None`` which will take the value from the
413
413
``legend.frameon`` :data:`rcParam<matplotlib.rcParams>`.
414
414
@@ -425,10 +425,24 @@ def legend(self, *args, **kwargs):
425
425
``legend.shadow`` :data:`rcParam<matplotlib.rcParams>`.
426
426
427
427
framealpha : None or float
428
- Control the alpha transparency of the legend's frame .
428
+ Control the alpha transparency of the legend's background .
429
429
Default is ``None`` which will take the value from the
430
430
``legend.framealpha`` :data:`rcParam<matplotlib.rcParams>`.
431
431
432
+ facecolor : None or "inherit" or a color spec
433
+ Control the legend's background color.
434
+ Default is ``None`` which will take the value from the
435
+ ``legend.facecolor`` :data:`rcParam<matplotlib.rcParams>`.
436
+ If ``"inherit"``, it will take the ``axes.facecolor``
437
+ :data:`rcParam<matplotlib.rcParams>`.
438
+
439
+ edgecolor : None or "inherit" or a color spec
440
+ Control the legend's background patch edge color.
441
+ Default is ``None`` which will take the value from the
442
+ ``legend.edgecolor`` :data:`rcParam<matplotlib.rcParams>`.
443
+ If ``"inherit"``, it will take the ``axes.edgecolor``
444
+ :data:`rcParam<matplotlib.rcParams>`.
445
+
432
446
mode : {"expand", None}
433
447
If `mode` is set to ``"expand"`` the legend will be horizontally
434
448
expanded to fill the axes area (or `bbox_to_anchor` if defines
0 commit comments