Example:
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{figure}
\begin{tikzpicture}
\begin{axis}
\addplot table {
0 0
1 0
};
\end{axis}
\end{tikzpicture}
\caption{Figure 1}
\end{figure}
\begin{figure}
\begin{tikzpicture}
\begin{axis}
\addplot table {
0 1
1 1
};
\end{axis}
\end{tikzpicture}
\caption{Figure 2}
\end{figure}
\end{document}
Here, the first plot ends up with the y range [-1, 1] while the second plot ends up with the y range [-0.8, 1.2]. I want both plots to have the same range that automatically covers both lines.
How can I do this without entering ymin/ymax manually?

\pgfplotsset{mystyle/.style={ymin=-2,ymax=2}}and then use\begin{axis}[mystyle]but perhaps this is too manual? – cmhughes Oct 29 '12 at 21:27scale, but the question seems to be about thedomain. Please change one of them so we know which one you are referring to. – Peter Grill Oct 29 '12 at 21:30