Skip to content

Restore legend.byrow - #5662

Merged
teunbrand merged 4 commits into
tidyverse:rc/3.5.0from
teunbrand:restore_legend_byrow
Jan 26, 2024
Merged

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

Conversation

@teunbrand

Copy link
Copy Markdown
Collaborator

This PR to the RC aims to fix #5661.

Briefly the legend.byrow setting wasn't working because the code assumed it was in params whereas we swapped it to elements later.

This made me realise that Guide$arrange_layout() needed access to the elements (instead of sneakily passing it through size ), so this PR also adds elements as an argument.

I was also surprised that there was no test for the legend.byrow setting, so I added one.

@teunbrand
teunbrand changed the base branch from main to rc/3.5.0 January 25, 2024 08:37
@teunbrand teunbrand added this to the ggplot2 3.5.0 milestone Jan 25, 2024
@teunbrand
teunbrand changed the base branch from rc/3.5.0 to main January 25, 2024 09:13
@teunbrand
teunbrand changed the base branch from main to rc/3.5.0 January 25, 2024 09:13
@teunbrand
teunbrand changed the base branch from rc/3.5.0 to main January 25, 2024 09:14
@teunbrand
teunbrand changed the base branch from main to rc/3.5.0 January 25, 2024 09:15

@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
teunbrand merged commit 617c336 into tidyverse:rc/3.5.0 Jan 26, 2024
@teunbrand
teunbrand deleted the restore_legend_byrow branch January 26, 2024 09:36
thomasp85 pushed a commit that referenced this pull request Feb 23, 2024
* add `elements` to `arrange_layout`

* Fix `byrow`

* add test
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.

legend.byrow = TRUE doesn't seem to be working

2 participants