I have a plot with its data, for example
\documentclass[]{article}
\usepackage[]{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[]
\addplot+[%multiply x data by a factor here, multiply y data by another factor
] plot[] coordinates{
( 1, 2 )
( 2, 3 )
( 3, 4 )
};
\end{axis}
\end{tikzpicture}
\end{document}
but I want pgfplots to apply a transformation (in a per-plot basis) to the data.
How do I scale (or more generally transform) the data before plotting?
If possible, this should work for coordinates, and be an option for addplot[...] or plot[...]
I tried x coord trafo/.code={\pgfmathparse{#1*scalefactor}\pgfmathresult}, but that only seems to work for the full axis and not for each curve in the plot.
The effect, should be in the example above, the same as having:
...
coordinates{
( 100., 0.2 )
( 200., 0.3 )
( 300., 0.4 )
};
...

\addplot tableinstead of\addplot coordinates. Do you have a particular reason for preferring the latter? – Jake Sep 23 '13 at 19:55tableandcoordinates, to reprocess source files that are already there and I want to change units of those plots. – alfC Sep 23 '13 at 19:59