Skip to content

Cannot change figure size when plot_spacer is the last item in a composition #960

Closed

Description

@has2k1
from plotnine import ggplot, aes, geom_point, geom_boxplot, theme, element_rect
from plotnine.composition import plot_spacer, Beside, Stack
from plotnine.data import mtcars

p1 = ggplot(mtcars, aes("wt", "mpg")) + geom_point()

p = Stack([Beside([p1, p1, p1]), Beside([p1, p1, plot_spacer()])])
p + theme(figure_size=(10, 10))

Activity

  1. added a commit that references this issue on Jul 29, 2025
    384b17f
  2. added a commit that references this issue on Jul 29, 2025
    857118e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions