I want that the following two plots share their x-axis using pgfplots and tikzpicture. It is important that the first one is fully logarithmic and at the second plot only the x-axis (semilogx). I did not find an idea for this special case. In addition to that I still want to have two plots. So the first plot, then a line and below the second plot with the x-axis. Only this x-axis shall be shared.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\include{pgfpages}
\makeatletter
\usepackage {tikz}
\usepackage{pgfplots}
\begin{document}
\begin{center}
\begin{tikzpicture}
\begin{loglogaxis}[width=0.8\textwidth,height=0.3\textheight]
\addplot[red] plot coordinates{(1,1)(2,4)(3,9)(4,16)};
\end{loglogaxis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{semilogxaxis}[width=0.8\textwidth,height=0.15\textheight]
\addplot[blue] plot coordinates{(1,0)(2,0.2)(3,0.2)(4,0.4)};
\end{semilogxaxis}
\end{tikzpicture}
\end{center}
\end{document}
So all in all there should be one tikzpicture. It would be great if the CSV import would work with that too, because in my paper I import it that way, but left it out here to keep it as simple as possible.
