Variable range in X axis in graph

Dear All,
I am doing some graphs, however I would like to change the range on the X axis like the one I attached.
Can someone tell me how to do it please ? I would really appreciate.

Thanks in advance.

It looks like a log scale… is it the case ?

Hi Couet,
Thanks for replying, I don’t think a log Scale for instance mine is like that:

and if I use can->SetLogx(); it became:

if you do not know what kind of scale it will be difficult to help you. Any way for graphs you can be linear or log. Any other scale will be tricky to do, not impossible, but tricky … But at least we should know what kind of scale it is … Also a small macro example will help.

Maybe you are missing: TAxis::SetMoreLogLabels
See, for example:

Thanks very much that was really what I needed, maybe I was not so clear. It works now.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.