Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 29a67dd

Browse filesBrowse 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
Copy full SHA for 29a67dd

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/legend.py

Copy file name to clipboardExpand all lines: lib/matplotlib/legend.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.