[Tex/LaTex] Single double-logarithmic axis

pgfplots

I'm trying to make a plot which has a double logarithmic y-axis. Is this possible? This should change the distance of each logarithmic increment, for I want to plot so called Bit-error rates. To have a straight line of the measured data this type of scaling is needed (y=log(log(x)). It is known that in normal log plot the distance between each increment is the same…
Unfortunately I was not able to find a solution in the pgfplots-manual. The only option given there is single log for one or both axis. An example is picture is given at the link below. This is the way it should look like.

Best Answer

As Christian Feuersänger said, you can use a y coord trafo to transform the coordinates on the fly. The tick labels would usually be re-transformed using y coord inv trafo, but the precision of the math engine isn't high enough for this (1000 becomes 997.8), so you'll have to provide the labels explicitly:

\documentclass{article}
\usepackage{pgfplots}
\begin{document}


\begin{tikzpicture}
\begin{axis}[
    y coord trafo/.code=\pgfmathparse{log10(log10(#1))},
    domain=0:2,
    ymax=10000,
    ytick={10,100,1000,10000},
    yticklabels={10,100,1000,10000},
    extra y ticks={2,...,9,20,30,...,90,200,300,...,900,2000,3000,...,9000},
    extra y tick labels={},
    every extra y tick/.style={major tick length=3pt}
]
\addplot {exp(exp(x))};
\end{axis}
\end{tikzpicture}
\end{document}