If you are looking for a fast way to wrap your labels dynamically, you can simply replace '' by '\n' like this :
wrapped_labels = [ label.replace('', '\n') for label in labels ]
If you are looking for a fast way to wrap your labels dynamically, you can simply replace '' by '\n' like this :
wrapped_labels = [ label.replace('', '\n') for label in labels ]