You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ guides(fill=guide_legend(title="% Change From Previous Month", nrow=1))
@@ -627,3 +628,82 @@ But it still didn't really work out the way I hoped, so I stuck with a vertical
627
628
628
629
## Composing in plotnine is not like R's patchwork
629
630
631
+
I wanted to add a line plot of employment numbers to the heatmap. Given the similar syntax in plotnine's [compose](https://plotnine.org/guide/plot-composition.html) to R's [patchwork](https://patchwork.data-imaginist.com/), I thought the behaviour would be similar.
632
+
633
+
One discrepancy is that there is no way to specify the relative size of component plots. But this might be addressed very soon [#980](https://github.com/has2k1/plotnine/pull/980)
634
+
635
+
It is possible to (rather labourously) pad plots by using `plot_spacer`s, which I attemp unsuccessfully below:
636
+
637
+
```{python}
638
+
line_plot = (
639
+
ggplot(
640
+
labour_processed_cutted.filter(
641
+
pl.col("YEAR") >= FILTER_YEAR[0],
642
+
pl.col("YEAR") <= FILTER_YEAR[1],
643
+
pl.col("Industry").is_in(["Total employed, all industries"]),
0 commit comments