Skip to content

Conversation

@thomasp85
Copy link
Member

Fix #4610

This PR adds the same type of check for presence of axis that happens in facet_wrap() to facet_grid() before adding padding between the strip and axis

@thomasp85 thomasp85 requested a review from clauswilke November 12, 2021 08:32
Copy link
Member

@clauswilke clauswilke left a comment

Choose a reason for hiding this comment

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

Looks good, but maybe add some sort of test?

@thomasp85 thomasp85 merged commit 199eb90 into main Nov 16, 2021
@thomasp85 thomasp85 deleted the issue-4610-grid-strip-padding branch November 16, 2021 20:08
teunbrand added a commit to teunbrand/ggplot2 that referenced this pull request May 30, 2024
teunbrand added a commit that referenced this pull request Jun 24, 2024
* isolate wrap panel initialisation

* isolate wrap axis attachment

* isolate wrap strip attachment

* isolate grid panel initialisation

* isolate grid axis attachment

* isolate grid strip attachment

* eliminate need for strips to know about axis size

* make formals consistent

* include all cases of grid strip/axis interactions in tests

* use `seam_table()` helper

* fix bug

* remove duplicate test from #4669

* share init_gtable method

* share majority of `draw_panels()`

* add news bullet

* Update snapshots for cli 3.6.3

* fix note
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.

Inconsistent behavior of strip.switch.pad.grid and strip.switch.pad.wrap in ggplot 3.3.3

3 participants