8000 fix rcParams legend.facecolor and edgecolor never being used by jclevesque · Pull Request #4362 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

fix rcParams legend.facecolor and edgecolor never being used #4362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixed facecolor and edgecolor being correctly read from rcParams["leg…
…end..."], but never being used in the call to FancyBboxPatch
  • Loading branch information
jclevesque committed Apr 20, 2015
commit 29a67dd0b281b6ee5de48e456d1240981cf646d9
4 changes: 2 additions & 2 deletions lib/matplotlib/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ def __init__(self, parent, handles, labels,

self.legendPatch = FancyBboxPatch(
xy=(0.0, 0.0), width=1., height=1.,
facecolor=rcParams["axes.facecolor"],
edgecolor=rcParams["axes.edgecolor"],
facecolor=facecolor,
edgecolor=edgecolor,
mutation_scale=self._fontsize,
snap=True
)
Expand Down
0