The groupplots environment allows global values of xmax to be set. Is there a way to automatically select a common value for all plots in a group? For example, with the code below, the 4th plot does not have the same x-scale as the other 3 plots. Is it possible to have all 4 plots use the same x-axis without manually defining a maximum x value (in this case, '2')?
\documentclass{article}
\usepackage{pgfplots}
\usepgfplotslibrary{groupplots}
\begin{document}
\begin{tikzpicture}
\begin{groupplot}[group style={group size=2 by 2}]
\nextgroupplot
\addplot coordinates{(0,0)(1,1)(2,2)};
\nextgroupplot
\addplot coordinates{(0,2)(1,1)(2,0)};
\nextgroupplot
\addplot coordinates{(0,2)(1,1)(2,1)};
\nextgroupplot
\addplot coordinates{(0,2)(1,1)(1,0)};
\end{groupplot}
\end{tikzpicture}
\end{document}

axis equal=true, but that might not be exactly what you want as the last graph does not have the samexmin,xmax, but not sure if that is required. – Peter Grill Nov 19 '12 at 11:05x descriptions at=edge bottom, which, with the example provided, provides the wrong axis labels for the second plot. – mynoduesp Nov 19 '12 at 12:13