I'm new to pgfplots/pgfplotstable and got the following problem. I got a datafile like the following I use for plotting with pgfplots:
P1 P2 Value
1 1 0.00000000000e+00
1 2 1.00000000000e-02
1 3 0.00000000000e+00
2 1 1.00000000000e-02
2 2 1.00000000000e-02
2 3 3.00000000000e-02
I can plot this using pgfplots:
\begin{tikzpicture}
\begin{axis}
[
height=15cm,
width=\textwidth%,
]
\addplot3[surf] table {../../results/testdatafile.dat};
\end{axis}
\end{tikzpicture}
\end{figure}
Now I would like to add a table presenting the data like this:
P2/P1 1 2
1 0.00000000000e+00 1.00000000000e-02
2 1.00000000000e-02 1.00000000000e-02
3 0.00000000000e+00 3.00000000000e-02
I couldn't figure out how to achieve this. Any help is appreciated.