Skip to content

Missing Scale$get_transformation() #5607

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 4 commits into from
Dec 22, 2023

Conversation

teunbrand
Copy link
Collaborator

@teunbrand teunbrand commented Dec 21, 2023

This PR to the RC aims to fix a bug uncovered affecting 1 package.

The bug occurs in:
https://github.com/tidyverse/ggplot2/blob/rc/3.5.0/revdep/problems.md#newly-broken-219

Briefly, I forgot a few places to use scale$get_transformation() instead of directly getting scale$transformation.
Also, in the rare case that a scale has a non-default transformation we should only backtransform if there is an actual inverse function.

@teunbrand teunbrand changed the base branch from main to rc/3.5.0 December 21, 2023 15:56
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
Copy link
Collaborator Author

Thanks Thomas

@teunbrand teunbrand merged commit 954e2f4 into tidyverse:rc/3.5.0 Dec 22, 2023
@teunbrand teunbrand deleted the missing_get_transformation branch December 22, 2023 08:57
thomasp85 pushed a commit that referenced this pull request Feb 23, 2024
* Use `Scale$get_transformation()` more

* Only inverse transform is there is an actual transform
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.

2 participants