Skip to content

Commit 73b959a

Browse files
teunbrandthomasp85
authored andcommitted
Bugfix guide_axis_theta() label size (#5598)
* Measure labels directly * Accept new snapshot
1 parent 44200a2 commit 73b959a

File tree

2 files changed

+101
-101
lines changed

2 files changed

+101
-101
lines changed

R/guide-axis-theta.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ GuideAxisTheta <- ggproto(
327327
if (params$position %in% c("top", "bottom")) {
328328
height <- sum(
329329
elements$offset,
330-
unit(max(height_cm(grobs$labels$children)), "cm")
330+
unit(max(height_cm(grobs$labels)), "cm")
331331
)
332332
vp <- viewport(
333333
y = unit(as.numeric(params$position == "bottom"), "npc"),
@@ -337,7 +337,7 @@ GuideAxisTheta <- ggproto(
337337
} else {
338338
width <- sum(
339339
elements$offset,
340-
unit(max(width_cm(grobs$labels$children)), "cm")
340+
unit(max(width_cm(grobs$labels)), "cm")
341341
)
342342
vp <- viewport(
343343
x = unit(as.numeric(params$position == "left"), "npc"),

0 commit comments

Comments
 (0)