Non linear axis

In ROOT there is the possibility to switch from linear axis

|     |      |      |      |
0     10     20     30     40

to log axis

|                 ||| |   |     |     |
1                 10      50

is there a way to have custom strech (given a function (x pixel)<->(x value))? for example suppose I want to zoom in an interesting region (30-40):

|     |     |        |   |   |   | | |  |     |      |
0     10   20       30      32    34   36    40     50

Not easy to do that…
You can have axis labeled according to a function,
but that’s not really helpful because you need the data to follow this axis, which is not possible.
So the short answer to your question is “no”.

[quote=“couet”]Not easy to do that…
You can have axis labeled according to a function,
but that’s not really helpful because you need the data to follow this axis, which is not possible.
So the short answer to your question is “no”.[/quote]

Do you think it is enought interesting to spend time to implement it? I think it is not so diffilcult: if you are able to switch to log scale (using a log10 function between pixel and x value) I think you can easily give the possibility to use a custom function.

Do you propose to try to do it ?

From my point of view it is a very interesting feature, so yes

Ok let us know when you have something.

Emm, no, sorry, we misunderstood: I’m asking if someone is able to do it: I don’t know where to start

I am afraid that’s no as simple as you think it is…