Wrap text in seaborn barplot x-axis python
I'm trying to plot a dataframe and I want the x-axis labels to not override each other like here When dealing with one plot, adding .set_xticklabels(rotation=30) does solve the issue: sns.catplot("foo", data=boo, aspect=5, kind="count" ).set_xticklabels(rotation=30) but when I add the ax argument as here: sns.catplot("foo", data=boo, aspect=5, kind="count" , ax=fig.add_subplot(211) ), it doesn't (see the first snapshot). I tried sns.catplot("foo", data=boo, aspect=5, kind="count", ax=ax1).set_xticklabels(rotation=30) I'm looking for some kind of excel's "wrap text". I tried looking in seaborn
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.