I am plotting a faceted plot which has very long labels. I am translating some code from R to python. I am looking to wrap the text of the x-axis over multiple lines. I have shown the R code below.
The R code
q <- ggplot() + ...
q + scale_x_discrete(labels = function(x) str_wrap(x, width = 8))
Is there an equivalent for this using plotnine?