Bin labels

I saw this was discussed here before, but the discussion seems to be very outdated…

I have a simple TGraph with points set simply with x from 0 to 10. I want to have texts defined by myself on X axis instead of numbers. I am experimenting with SetBinLabel(), and I can create labels, but the do not seem to match numbers on the axis. I guess I need to attach bin to every number I want label for, somehow, but I don’t know a proper way. Could someone give me an advice?

Lech Wiktor Piotrowski

see examples in tutorials labels1.C, hlabels1.C

Rene

Thankyou, I managed to do this on graph.

LWP