I have created a simple 2D plot from a table (xy-data) and now I would like to both translate and scale the x-axis. (I would prefer not to scale the actual data only the axis).
As an example, let's say the x-values runs between (a,b) and I now want them to be between (0,1) instead. How would I go about doing this? I have found an example on how to subtract a constant but I cannot get it to work with multiplication. Any help would be much appreciated.
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[scaled x ticks=manual:{}{%
\pgfmathfloatcreate{1}{6.0}{0}%
\pgfmathfloatsubtract{#1}{\pgfmathresult}%
}]
\addplot coordinates {
(6, 2)
(8, 3)
};
\end{axis}
\end{tikzpicture}
\end{document}


\begin{document}and a\begin{end}. – N.N. Aug 23 '11 at 15:08