plotnine.composition.Wrap

Wrap(items)

Wrap plots or compositions into a grid

Usage

plot + plot
plot + composition
composition + plot
composition + composition

Typically, you will use this class through the + operator.

Parameters

items : list[ggplot | Compose]

The objects to be arranged (composed)

nrow

Number of rows in the composition

ncol

Number of cols in the composition

See Also

Beside

To arrange plots side by side

Stack

To arrange plots vertically

plot_spacer

To add a blank space between plots

Compose

For more on composing plots