TF1* f = new TF1("f","TMath::Cos(x/TMath::Pi())",0,1);
So that at least the tick marks are where they should (in submultiples of pi). Could one then modify the existing labels without touching the ticks? How?
Thanks for the answer. For TF1, I figured out that you have to call f->GetHistogram()->GetXaxis() …
However, the suggested solution erases all tick marks. Is there any way to retain the tick marks? In other words, could I make in the hpx histogram somehow the substitution of labels
{-4,-3,-2,-1,0,1,2,3,4} --> {-4pi,-3pi,-2pi,-pi,0,pi,2pi,3pi,4pi} without affecting the axis tick marks? Just modifying the text-labels.