I have tried using textwrap
on the labels and it works for me.
from textwrap import wraplabels=['Really really really really really really long label 1','Really really really really really really long label 2','Really really really really really really long label 3']labels = [ '\n'.join(wrap(l, 20)) for l in labels ]
Inserting this in your code gives us: