I have the following data & I'm trying to display a plot similar to the screenshot
items,section_1,section_2,section_3,section_4
10,82,42,38,22
20,38,24,20,63
30,44,49,39,40
40,58,48,47,47
50,58,45,59,41
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI have the following data & I'm trying to display a plot similar to the screenshot
items,section_1,section_2,section_3,section_4
10,82,42,38,22
20,38,24,20,63
30,44,49,39,40
40,58,48,47,47
50,58,45,59,41
No MWE no explanation :)
\documentclass{standalone}
\usepackage{pgfplotstable}
\begin{document}
\pgfplotstableread[col sep=comma]{
items,section_1,section_2,section_3,section_4
10,82,42,38,22
20,38,24,20,63
30,44,49,39,40
40,58,48,47,47
50,58,45,59,41
}\mytable
\begin{tikzpicture}
\begin{axis}
\pgfplotsinvokeforeach{1,...,4}{
\addplot table[x=items,y=section_#1]{\mytable};
}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass
and the appropriatepackages
that sets up the problem, and shows what you have tried. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. – ferahfeza Apr 7 '14 at 21:44