Is there a possibility in matplotlib.pyplot to have a histogram, where bar width is not identical to bin size? For example, if bar_width>bin_size
, the bars should overlap on graph and if bar_width<bin_size
, the bars will have gaps in between.
Additionally: I would like to set up the width manually, not relative to bin size (I'm plotting big number of histograms with different bin sizes, but I want to unify their look).
Asked
Active
Viewed 62 times
0

Tomasz M.
- 1
- 2
-
1[Two](https://stackoverflow.com/a/31047434/8881141) different [approaches.](https://stackoverflow.com/a/58186329/8881141) – Mr. T Nov 26 '20 at 09:37
-
You can also add an edgecolor (of 'white' for example) and line thickness. – JohanC Nov 26 '20 at 09:53
-
Thanks, the second option is what I'm looking for, although it quite of a workaround! – Tomasz M. Nov 26 '20 at 09:53