I\'m putting labels to the right (offset by 10) of rotated histogram bars like this:
plot "hist.txt" using 1:2 with boxes ls 1, "hist.txt"