My plot output has all the bar charts neck in neck with each other. I want there to be some spacing to show the groups of plots by date.
Here is what i see
And here is what i want:
my code:
fig, ax = plt.subplots(figsize=(14, 8))
ax.set_xticks(ax.get_xticks()[::2])
df['before'].plot(kind='bar', ax=ax2, color='g', alpha=0.1, label='label before', position=0)
df['after'].plot(kind='bar', ax=ax2, color='r', alpha=0.1, label='label after', position=1)