Skip to content

Commit

Permalink
add padding cell in final gtable for NULL plot.margin (#6235)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu authored Dec 12, 2024
1 parent 4c84e8a commit ebecea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot-build.R
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ ggplot_gtable.ggplot_built <- function(data) {
plot_table <- table_add_tag(plot_table, plot$labels$tag, theme)

# Margins
plot_margin <- calc_element("plot.margin", theme)
plot_margin <- calc_element("plot.margin", theme) %||% margin()
plot_table <- gtable_add_padding(plot_table, plot_margin)

if (is.theme_element(theme$plot.background)) {
Expand Down

0 comments on commit ebecea5

Please sign in to comment.