0

I have plotted a box plot with Seaborn. However, the x-axis labels are overlapping. Is there a way to wrap the labels (continue the labels in the next line down) to prevent them from overlapping?

(I would not like to rotate the labels either)

Screenshot of box plot

(sns.boxplot(data=train.select_dtypes(int)))
student214
  • 95
  • 9
  • 1
    Wrapping opens another can of worms. Your best bet is rotating them: [Rotate axis text in python matplotlib](https://stackoverflow.com/questions/10998621/rotate-axis-text-in-python-matplotlib) – Mr. T Feb 13 '21 at 11:56
  • 1
    try plt.xticks(rotation=90) – Golden Lion Feb 13 '21 at 17:56

0 Answers0