To show the properties of a function with two variables two-dimensionally I want to fix one variable but let it increase between plots that are placed horizontally next to each other, e.g. plot the functions where the fixed variable is set to 0.2, 0.4, 0.6 and 0.8 respectively. One way of doing this is to draw an x axis that is reset after its maximum is reached. Then the plots share y axis. How can one achieve this with pgfplots?
Below is a crude attempt of achieving this. One problem with it is that it is constructed as separate tikzpictures which may be broken over lines (which happens if the latter part of the example is uncommented). Another problem is that the x axis is broken after its reset.

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{
foo/.style={
domain=0:1,
xmin=0, xmax=1,
ymin=-1, ymax=1,
axis x line=bottom,
width=5cm,
}
}
\begin{document}
\begin{figure}
\begin{tikzpicture}
\begin{axis}[foo,
axis y line=left
]
\addplot{0.2 - x};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[foo,
hide y axis
]
\addplot{0.4 - x};
\end{axis}
\end{tikzpicture}
% \begin{tikzpicture}
% \begin{axis}[foo,
% hide y axis
% ]
% \addplot{0.6 - x};
% \end{axis}
% \end{tikzpicture}
% \begin{tikzpicture}
% \begin{axis}[foo,
% hide y axis
% ]
% \addplot{0.8 - x};
% \end{axis}
% \end{tikzpicture}
\end{figure}
\end{document}
