\documentclass[a4paper]{article}

\usepackage{pgfplots}

\pgfplotsset{compat=1.8}


\begin{document}

%\tracingcommands=2\tracingmacros=2
\fbox{%
\begin{tikzpicture}
    \begin{semilogyaxis}[
	hide axis,
	%clip=false,
	xmin=-10,xmax=10,
    ]
        \addplot+[samples=2] {exp(x)};
    \end{semilogyaxis}
\end{tikzpicture}%
}

\end{document}

