Change Axis Label

Hi Rootters,

I would like to change a TGraph axis Label and it seems the the new labels does not correspond to the “data points” :frowning:
Do I need an Histo for that ? Or is there a trick to “align” data point with its label ?

example I used :

Graph_1->Draw("AP"); for(int i=0;i<81;i++) Graph_1->GetXaxis()->SetBinLabel(i,label[i%9]);

Thanks for yopur help,
Cheers

Alphanumeric Labels are " bins based". Have a look at:
$ROOTSYS/tutorials/graphs/labels1.C
$ROOTSYS/tutorials/graphs/labels2.C
$ROOTSYS//tutorials/hist/hlabels1.C
$ROOTSYS//tutorials/hist/hlabels2.C