I want to print a hbar-graph and manipulate the labelsize by referring to a labelstyle. Why? I do this because I calculated the textsize relative to the graph size in order to keep the same pt-size across various graphs varying in size in a report. This approach is presented by Ben Jann in Stata Journal 18(3) "Customizing Stata graphs made easy (part 1)".

When I use the labstyle-option then the labsize is correct but the label shifts into the axis (tested with Stata 15.1 and 16.0). This does not happen when I use the bar and not the hbar graph. Any idea how to solve this?

Code:
sysuse auto, clear
graph hbar (mean) trunk, over(foreign) name(def)
graph hbar (mean) trunk, over(foreign, label(labstyle(small_label))) name(def_slab)

graph bar (mean) trunk, over(foreign) name(def_bar)
graph bar (mean) trunk, over(foreign, label(labstyle(small_label))) name(def_lab_bar)



The hbar graph without using labstyle-option:

Array



The hbar graph using labstyle-option:
Array