Skip to content

Add legend.facecolor and edgecolor to rcParams #3792

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

Closed
wants to merge 3 commits into from
Closed

Add legend.facecolor and edgecolor to rcParams #3792

wants to merge 3 commits into from

Conversation

mrkrd
Copy link

@mrkrd mrkrd commented Nov 13, 2014

Ref: #3785

@tacaswell
Copy link
Member

For back-compatibility the should probably default to None and use the axes-based colors in that case.

@tacaswell
Copy link
Member

This should also get an entry in what_new along with the rest of the new rcparams.

@mrkrd
Copy link
Author

mrkrd commented Nov 14, 2014

Thanks for the tips. I have commited those changes.

@@ -661,6 +661,9 @@ def __call__(self, s):
# the relative size of legend markers vs. original
'legend.markerscale': [1.0, validate_float],
'legend.shadow': [False, validate_bool],
'legend.facecolor': ['w', validate_color], # background color; white
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the actual default values.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a PR open against your master branch to fix this + add a test, please review of merge.

@mrkrd
Copy link
Author

mrkrd commented Nov 25, 2014

OK, I think, it's ready.

@tacaswell
Copy link
Member

Can you revert your last commit? The new rcparams need should be set to None in the template.

@mrkrd
Copy link
Author

mrkrd commented Nov 27, 2014

Can you revert your last commit? The new rcparams need should be set to None in the template.

Sure, don't ask me what I was thinking... ;)

Thank you!

Marek

tacaswell added a commit that referenced this pull request Dec 24, 2014
ENH : added legend.edgecolor and legend.facecolor rcparams

Merged locally to discard a commit + it's reversion.
@tacaswell
Copy link
Member

Closing as I merged most of these commits (dropping the last two) by hand as 92e608d

@tacaswell tacaswell closed this Dec 24, 2014
tacaswell added a commit that referenced this pull request Mar 14, 2015
This reverts commit 92e608d, reversing
changes made to 8c4626f.
tacaswell added a commit to tacaswell/matplotlib that referenced this pull request Mar 14, 2015
Attempt to implement 'inherited' rcparams, that is rcparams
that are only used if they are non-default.

Re-introduces feature introduced in matplotlib#3792
/92e608d655f1fa667fdf5bc3e99f950eb08f7c42 and reverted in
c90469b
tacaswell added a commit to tacaswell/matplotlib that referenced this pull request Mar 14, 2015
Attempt to implement 'inherited' rcparams, that is rcparams
that are only used if they are non-default.

Re-introduces feature introduced in matplotlib#3792
/92e608d655f1fa667fdf5bc3e99f950eb08f7c42 and reverted in
c90469b
tacaswell added a commit to tacaswell/matplotlib that referenced this pull request Mar 14, 2015
Attempt to implement 'inherited' rcparams, that is rcparams
that are only used if they are non-default.

Re-introduces feature introduced in matplotlib#3792
/92e608d655f1fa667fdf5bc3e99f950eb08f7c42 and reverted in
c90469b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants