[Tex/LaTex] Y-tick labels on the right side, y-axis label on the left

labelspgfplotsticks

Is there a way to only move the y-tick labels to the right? The option yticklabel pos=right automatically moves the axis-label, too.

Here a MWE of how the axis-label is also moved:

\documentclass[xcolor=x11names]{article}
\usepackage{graphicx}
\usepackage{tikz,pgfplots}
\pgfplotsset{compat=1.9}
\usepackage{palatino}
\usepackage[euler-digits]{eulervm}
\begin{document}
    \begin{tikzpicture}
        \newcommand{\scaling}{0.5}
        \pgfplotsset{
            myaxis/.style={
                width={\scaling\textwidth},
                height={\scaling\textwidth/1.61803398875},
            },
        }
        \begin{semilogyaxis}[
            myaxis,
            xlabel={$x$},
            ylabel={$y$},
            ymin=1e-6,
            ymax=1e12,
            xmin=-4,
            xmax=4,
            scale only axis,
            ytick={1e-5,1e2,1e9},
            yticklabels={$10^{-5}$,$10^2$,$10^{9}$},
            yticklabel pos=right
        ]
        \addplot[very thick,color=blue!70!green!80,samples=500,domain=-4:4] {abs(1/(1+x))};
        \addplot[very thick,color=blue!30!green!80,samples=500,domain=-4:4] {abs(1/(1+x*x))};
        \end{semilogyaxis}
    \end{tikzpicture}
\end{document}

Best Answer

It is possible to adjust the label positioning manually.

\documentclass[xcolor=x11names]{article}
\usepackage{graphicx}
\usepackage{tikz,pgfplots}
\pgfplotsset{compat=1.9}
\usepackage{palatino}
\usepackage[euler-digits]{eulervm}
\begin{document}
    \centering
    \begin{tikzpicture} %
        \newcommand{\scaling}{0.5}
        \pgfplotsset{ %
            myaxis/.style={ %
                width={\scaling\textwidth}, %
                height={\scaling\textwidth/1.61803398875}, %
            }, 
        } %
        %  
        \pgfplotsset{every axis y label/.append style={yshift=7.75cm}}  %adjust the position with yshift           
        \begin{semilogyaxis}[ %
            myaxis, %
            xlabel={$x$}, %
            ylabel={$y$}, %
            ymin=1e-6, %
            ymax=1e12, %
            xmin=-4, %
            xmax=4, %
            scale only axis,
            ytick={1e-5,1e2,1e9},
            yticklabels={$10^{-5}$,$10^2$,$10^{9}$},
            yticklabel pos=right
        ] %
        \addplot[very thick,color=blue!70!green!80,samples=500,domain=-4:4] {abs(1/(1+x))};
        \addplot[very thick,color=blue!30!green!80,samples=500,domain=-4:4] {abs(1/(1+x*x))};
        \end{semilogyaxis} %
    \end{tikzpicture} %
\end{document}

enter image description here