7

How can I use the addplot table command to select data from rows to be plotted instead of columns?

Thank you.. I tried that but still I got errors.. here is my script:

\documentclass{article}
\usepackage[listofformat=empty]{subfig}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\begin{document}



\pgfplotstabletypeset[string type]{plotData/PIP-TRUE-PD-TRUE/I2-I3-I4-I5-I6-0.1.dat}


\pgfplotstabletranspose\loadedtable{plotData/PIP-TRUE-PD-TRUE/I2-I3-I4-I5-I6-0.1.dat}
\pgfplotstabletypeset[string type]\loadedtable

\addplot[smooth,mark=*,white, draw=black] table[x=Rate,y index=8] {plotData/PIP-TRUE-PD-TRUE/I2-I3-I4-I5 I6-0.1.dat};
\addlegendentry{RR=0.1}
\end{document}}
Torbjørn T.
  • 206,688

1 Answers1

8

You can transpose the table first using

 \pgfplotstabletranspose\datatable{<filename>}

Then you can use the normal \addplot table {\datatable}; command.

Jake
  • 232,450