Skip to content

Commit 29a67dd

Browse files
committed
fixed facecolor and edgecolor being correctly read from rcParams["legend..."], but never being used in the call to FancyBboxPatch
1 parent 8f9bc7b commit 29a67dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/legend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ def __init__(self, parent, handles, labels,
357357

358358
self.legendPatch = FancyBboxPatch(
359359
xy=(0.0, 0.0), width=1., height=1.,
360-
facecolor=rcParams["axes.facecolor"],
361-
edgecolor=rcParams["axes.edgecolor"],
360+
facecolor=facecolor,
361+
edgecolor=edgecolor,
362362
mutation_scale=self._fontsize,
363363
snap=True
364364
)

0 commit comments

Comments
 (0)