So, say I have three datasets D1,D2,D3
I can use this guide to create the bars next to each other. Say I don't know how many data sets I have, lets call the number N
, is there a way to create N
bars aligned around the x-ticks, without the placement-parameters in ax.bars
(x - width/2
)? Or do I have to create the placement dynamically?
Asked
Active
Viewed 14 times
0

CutePoison
- 4,679
- 5
- 28
- 63
-
It is much easier to use [pandas bar plots](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.plot.bar.html) to get what you need. – JohanC Feb 15 '20 at 18:56
-
I have used around 2 hours to make the plots working - your solution took around 2 minutes! Feel free to post it as answer – CutePoison Feb 15 '20 at 19:01