How to prevent overlapping x-axis labels in sns.countplot

后端 未结 5 813
天涯浪人
天涯浪人 2020-12-04 12:15

For the plot

sns.countplot(x=\"HostRamSize\",data=df)

I got the following graph with x-axis label mixing together, how do I avoid this? Sho

5条回答
  •  盖世英雄少女心
    2020-12-04 13:06

    If you just want to make sure xticks labels are not squeezed together, you can set a proper fig size and try fig.autofmt_xdate().

    This function will automatically align and rotate the labels.

提交回复
热议问题