Skip to content

Commit 0d6d443

Browse files
authored
Turn on clipping for facet strips on the left (#3068)
* Turn on clipping for left strips * Update visual test case for switched strips (now with clipping on left) * Add news bullet
1 parent f6ac17f commit 0d6d443

File tree

3 files changed

+9
-25
lines changed

3 files changed

+9
-25
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ggplot2 3.1.0.9000
22

3+
* Facet strips on the left side of plots now have clipping turned on, preventing
4+
text from running out of the strip and borders from looking thicker than for
5+
other strips (@karawoo, #2772 and #3061).
6+
37
* `geom_rug()` now works with `coord_flip()` (@has2k1, #2987).
48

59
* Layers now have a new member function `setup_layer()` which is called at the

R/labeller.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ build_strip <- function(label_df, labeller, theme, horizontal) {
553553
element,
554554
gp,
555555
horizontal,
556-
clip = "off"
556+
clip = "on"
557557
)
558558

559559
list(

tests/figs/facet-strips/switched-facet-strips.svg

Lines changed: 4 additions & 24 deletions
Loading

0 commit comments

Comments
 (0)