For a publication I am preparing multiple plots with PGFPlots and would like to have them all look alike, i.e. having the same axis and identical ticks. For this I intended to use ymin and ymax, but then PGFPlots doesn't seem to respect scaled ticks=true.
I've tried to boil it down to the fairly minimal example below, showing the effect of setting the different parameters.. I'd like to achieve the plot in the lower right corner, but with scaled ticks. What am I doing wrong?
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest,width=6cm}
\usepackage[pdftex,active,tightpage]{preview}
\begin{document}
\begin{preview}
\begin{tikzpicture}
\begin{axis}[ title=Nothing ]
\addplot [red] coordinates { (0,0.0003) (1,0.0004) };
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[ title={Scaled Ticks \emph{false}},
scaled ticks=false ]
\addplot [green] coordinates { (0,0.0003) (1,0.0004) };
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[ title={Scaled ticks \emph{true} with ymax},
scaled ticks=true,
ymax=0.0005 ]
\addplot [blue] coordinates { (0,0.0003) (1,0.0004) };
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[ title={Scaled ticks \emph{true} with ymax \& ymin},
scaled ticks=true,
ymax=0.0005,
ymin=0 ]
\addplot [cyan] coordinates { (0,0.0003) (1,0.0004) };
\end{axis}
\end{tikzpicture}
\end{preview}
\end{document}


ymin=0.0000001in my last example, that the scaled ticks do work as expected. But is that really the solution? – Habi Dec 21 '12 at 11:21