Alignment of bar charts to table colums

Given the example of Table Demo — Matplotlib 3.6.3 documentation when you increase the bar_width (like =1) the bars aren’t centered above the columns.
How to fix without specifying a fixed offset?