Vertical Alignment of Alphanumeric Labels

Hi,

I am defining alphanumeric labels for the x axis. They are not all aligned on the same height, but they are anchored on top. Does anyone know how to fix this? I am using root 5.34/32 on lxplus.

xLabelsAlignment(){
  TH1F* histo = new TH1F("", "", 6, 0, 6);
  histo->GetXaxis()->SetLabelSize(0.1);
  histo->GetXaxis()->SetBinLabel(1, "d");
  histo->GetXaxis()->SetBinLabel(2, "u");
  histo->GetXaxis()->SetBinLabel(3, "s");
  histo->GetXaxis()->SetBinLabel(4, "c");
  histo->GetXaxis()->SetBinLabel(5, "b");
  histo->GetXaxis()->SetBinLabel(6, "t");
  histo->Draw();
}

Best, Konstantin


Thanks a lot. I didn’t find this discussion before.