r/matplotlib • u/Phobos_Cress • Aug 24 '21
Inverting bar charts
Hi, i was wondering how i could invert the positions of the bar charts. I would like the exercise deficit to be on top of the caloric deficit.
Here is an extract of the code, as well as the current output
ax.bar(date,caloric_intake,width=0.4,label="daily caloric intake")
ax.bar(date,exercice_deficit,width=0.4,label="daily exercise deficit")

1
Upvotes
View all comments
Show parent comment
2
u/Phobos_Cress Aug 25 '21
Ok got it, thanks !