'Changing/wrapping python plotly express row facet names

I'm currently working on a plotly express facet plot which is quite large and am running into the issue that the row facet names on the right are overlayed, see similar example below: enter image description here

Does anyone know how to change/wrap or maybe add a new line to the row facet names? Using something like "\r\n" in the y_facet_names didn't work at least.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source