neuniversity / ALY6140

1 stars 3 forks source link

Barplot using seaborn-to increase space between bars #44

Open ShailuKonda opened 5 years ago

ShailuKonda commented 5 years ago

Hello all,

I am plotting a bar graph using Seaborn. But the space between each bar is very less. So that the values on X-axis are overlapping. Can anyone know how to inicrease the space between the bars using seaborn.

pr24 commented 5 years ago

s = pd.Series([1, 2, 3])

In [27]: s.plot.bar(width=.1) Hope this code will work

YantingGuo commented 5 years ago

I came across the same problem in my work, finally, I figure it out by rotating the text direction, try this code plt.xticks(rotation=315), hope that can help!