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

Don't attempt to calculate secondary breaks = NULL #5714

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5713.

Briefly, in #5569 we changed how out-of-bounds breaks were handled, that caused a subtle difference that in secondary axes NULL breaks became numeric(0) breaks. In this PR, we now skip break calculation when the length is 0, which includes both cases.

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

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

LGTM

@teunbrand teunbrand merged commit 6e972c1 into tidyverse:main Feb 27, 2024
12 checks passed
@teunbrand teunbrand deleted the fix_5713 branch February 27, 2024 16:46
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.

How to avoid warnings when adding a secondary axis without breaks or labels in ggplot2 3.5.0?
2 participants