r/matplotlib • • 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

2 comments sorted by