Skip to content

use approx instead of nearest match when placing secondary ticks #4857

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 3 commits into from
Jun 15, 2022

Conversation

thomasp85
Copy link
Member

Fix #3576
Close #3581

This PR implements a very simple approach to doing proper interpolation to find the placement of the secondary ticks thus removing the small imprecisions that can occur when using secondary axes.

@thomasp85 thomasp85 added this to the ggplot2 3.4.0 milestone May 25, 2022
@thomasp85 thomasp85 requested a review from yutannihilation May 25, 2022 08:28
@thomasp85 thomasp85 requested a review from clauswilke June 13, 2022 08:12
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.

Sorry, somehow I missed I was assigned as a reviewer here. Reading the description of #3581, I think I understand the problem, and this looks good to me.

@clauswilke
Copy link
Member

I'm not sure I fully understand everything involved, so I'll abstain from making a comment one way or another.

@thomasp85 thomasp85 merged commit aaa2d44 into main Jun 15, 2022
@thomasp85 thomasp85 deleted the issue-3576-precise-sec-ticks branch June 15, 2022 07:34
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.

Incorrect tick positions of the secondary axis
3 participants