0

I have to build a histogram. For example, with an interval of 25 - 34 on the y axis, there should be 7 and so on. I made a decision, but I need to get rid of the spaces to the right of each column.Image of problem Code: https://repl.it/repls/PhonyMonumentalChief Unfortunately, I did not find a solution to this problem. I will be glad to any help!

Dmitr0k
  • 1
  • 1
  • 2
    Surprisingly, I can't find an exact duplicate on SO. But there are [numerous](https://stackoverflow.com/questions/44340637/how-to-fix-bar-width-in-this-matplotlib-plot) [questions](https://stackoverflow.com/questions/46175808/python-matplotlib-bars-overlapping-although-width-1) relating to setting the [width](https://stackoverflow.com/questions/19254852/how-to-set-bar-widths-independent-of-ticks-in-matplotlib) of a bar in matplotlib. Use the `width` parameter of `ax.bar()`. – bnaecker Jun 06 '18 at 20:11
  • 1
    @bnaecker I found a duplicate. – ImportanceOfBeingErnest Jun 06 '18 at 21:44
  • @bnaecker Thank you so much! – Dmitr0k Jun 07 '18 at 12:45

0 Answers0