I’m trying to make a horizontal bar chart with string tick labels. I would like to center labels between ticks but I only find a solution for line plot with numeric labels (Centering labels between ticks — Matplotlib 3.4.2 documentation).
Please refer to the following picture for illustration. If we ignore the line plot in the picture, and take the x tick labels as text, how may I reproduce this example in matplotlib? Many thanks!