Skip to content

Fix labels/breaks/limits interactions in bin guides #4849

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 5 commits into from
May 18, 2022

Conversation

thomasp85
Copy link
Member

Fix #4831

This PR properly defines how breaks and labels behaves with and without show.limits set and in the presence of an overlap between limits and breaks.

  • If a limit is also present in breaks it will be shown no matter the value of show.limits
  • If labels is given as a vector of values then show.limits will be ignored with a warning

@thomasp85 thomasp85 requested a review from hadley May 17, 2022 14:59
Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

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

Does this need any documentation updates anywhere

Is the change to guide-bins-can-show-limits.svg deliberate?

@thomasp85
Copy link
Member Author

I guess it would make sense to add a note in the docs

The change in the already present visual test is because this PR fixes a bug that was uncovered as well

@thomasp85 thomasp85 merged commit d6f5bf4 into main May 18, 2022
@thomasp85 thomasp85 deleted the issue-4831-labels-breaks-limits-bins branch May 18, 2022 10:00
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.

labeled breaks for binned color scale malfunction when show.limits = T
2 participants