Label axis with specific values

Hi!

Is there a way of labeling an axis of a TGraph/TMultiGraph only with the values that are filled? An example:

x_values = {2,4,6,8,10,20,43}

The x axis now only should show these values and not others like 0,1,3,5,7,…

Cheers,
Stefan

To have specific labels at a specific place you should use alphanumeric labels like in the examples /home/couet/root/tutorials/hist/hlabel*.C.

But before trying this you can also try to change the number of axis divisions (increase or decrease) or try also to turn off the automatic optimization by specifying a negative number of divisions.