Skip to content

Missing Scale$get_transformation() - #5607

Merged
teunbrand merged 4 commits into
tidyverse:rc/3.5.0from
teunbrand:missing_get_transformation
Dec 22, 2023
Merged

teunbrand merged 4 commits into
tidyverse:rc/3.5.0from
teunbrand:missing_get_transformation

Conversation

@teunbrand

@teunbrand teunbrand commented Dec 21, 2023 •

Copy link
Copy Markdown
Collaborator

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

@thomasp85 thomasp85 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@teunbrand

Copy link
Copy Markdown
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