Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14215

Adjusting Seaborn Tick Marks on Bar Plot [duplicate]

$
0
0

I am trying to adjust the space between each tick mark to allow for more space for the bar labels. End goal will to be have thicker bars, so shrinking the font or the size of the bar is not an option.

Here is the makeup of my current plot code:

ax = sns.barplot(Df, x = Df['ID'], y = Df['Numbers'], width = .5 , errorbar = None)ax.bar_label(ax.containers[0], fontsize = 8, fmt = '%.1f')sns.set(rc = {'figure.figsize': (15, 15)})plt.xticks(rotation = 45, ha = 'right')plt.savefig()

This is what the output is:

Bar Graph output

Are there any packages that can just increase the space in between the tick marks?

I have already tried a few other posts like How to increase the space between bar plot bars.

I also have tried decreasing sizes and rotating the x tick labels, and I still cant get it to look right.


Viewing all articles
Browse latest Browse all 14215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>