#pi on x-axis

Dear rooters,

I would like to plot a variable on a TH1F from 0 to TMath::Pi. But instead of numbers on
x-axis I would like to have integer multiples of #pi (0,… #pi/2,… #pi).

Is there a build in way to do this?

Thank you,
Yannis

Right now the only way is to make some alpha numeric axes. as in the following example:

{
   TCanvas *c1 = new TCanvas("c1","Test",0,0,700,700);
   TFile *example = new TFile("hsimple.root");
   hpx->Draw();
   hpx->GetXaxis()->SetBit(TAxis::kLabelsHori);
   hpx->GetXaxis()->SetBinLabel(10,"-#pi");
   hpx->GetXaxis()->SetBinLabel(50,"0");
   hpx->GetXaxis()->SetBinLabel(90,"+#pi");
}

See also the new feature:
root.cern.ch/doc/master/classTGaxis.html#GA10a