Skip to content

fix dropping minor breaks #4941

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

Conversation

javlon
Copy link
Contributor

@javlon javlon commented Aug 12, 2022

Fix #4516.

This PR fixes the bug when coord_cartesian() has limits in descending order.

The issue and its solution are similar to issue #3952.

Copy link
Member

@yutannihilation yutannihilation left a comment

Choose a reason for hiding this comment

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

Thanks for catching! It seems this was my oversight in #3958, sorry. This might be just my preference, but I think we can assign the sorted result to a variable

continuous_scale_sorted <- sort(continuous_range)

rather than doing sort() twice.

Copy link
Member

@yutannihilation yutannihilation left a comment

Choose a reason for hiding this comment

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

Thanks!

@yutannihilation yutannihilation merged commit c20e142 into tidyverse:main Aug 13, 2022
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.

Reversing an axis drops minor_breaks
2 participants