From: Giuseppe Angilella <Giuseppe.Angilella@ct...> - 2005-07-29 09:46:48
is it possible to have an user-defined scale on an axis according to a
given nonlinear function? I mean something like "set logscale x", but with
tics distributed according to x**2 or any other given f(x).
I know I could use "set xtics", and then define every single tic I need,
but that's of course much more cumbersome.
Thanks for every hint.
Giuseppe Angilella wrote:
> is it possible to have an user-defined scale on an axis according to a
> given nonlinear function?
Not really. The problem is that it is really quite hard to find any
generally applicable, sensible way of distributing tics on such
arbitrarily deformed axes, so odds are you'ld have to place the tics
manually anyway --- in which case there wouldn't not much to be gained
by having such a feature in gnuplot in the first place.
So: transform the data to be plotted, and place tics manually, as in
set xtics ('1' f(1), '2' f(2), '3' f(3))
plot f(t), f(g(t)) t 'g(x)'