I've made a boxplot, but as you see the xlabels are too long so I need to rotate them a little bit:
I've found several topics for this, here on stack, and on other sites. Some of my tries and the errors I got:
long_box.set_xticklabels(long_box.get_xticklabels(),rotation=30)
or
plt.setp(long_box.get_xticklabels(), rotation=45)
give this error:
AttributeError: 'Text' object has no attribute 'set_xticklabels'
and, this code long_box.tick_params(axis='x', labelrotation=90)
produces this error:
AttributeError: 'Text' object has no attribute 'tick_params'
I didn't understand what does a 'Text' object mean.. how do I fix this?