Skip to content
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

replace bgcolor with backgroundcolor in Legend #3261

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

JonasIsensee
Copy link
Contributor

@JonasIsensee JonasIsensee commented Sep 27, 2023

Description

Fixes #2101

This PR renames the kwarg bgcolor in Legend to backgroundcolor to be consistent with usage in Axis and Figure.

Type of change

  • Breaking but with deprecation warning ?

Checklist

  • Added an entry in NEWS.md (for new features and breaking changes)
  • Added or changed relevant sections in the documentation

@jkrumbiegel
Copy link
Member

Good idea, can we make this a deprecation instead? For a while we could have both and warn that the other should be used? Or maybe we group this into 0.20 which is already breaking anyway.

@JonasIsensee
Copy link
Contributor Author

Keeping a deprecation for a while shouldn't do any harm.

@JonasIsensee
Copy link
Contributor Author

So, I tried to fix the deprecation again.
I'm absolutely not sure if this is the way you would like it to be...

Copy link
Member

@SimonDanisch SimonDanisch left a comment

Choose a reason for hiding this comment

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

I like this :) I've stumbling over this myself for quite a few times^^

@jkrumbiegel jkrumbiegel merged commit 21b4d24 into MakieOrg:master Oct 23, 2023
14 checks passed
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.

Inconsistent kwarg names backgroundcolor (for Figure, Axis) and bgcolor (for Legend)
3 participants