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}}
2

1 Answer 1

8

You can transpose the table first using

 \pgfplotstabletranspose\datatable{<filename>}

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

1
  • Thank you.. i tried that but still I got errors.. here is my script Jun 9, 2014 at 18:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .