Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aa,bb,cc
- 1,1,1
- 2,2,4
- 3,3,9
- 4,4,16
- ERROR: Package pgfplots Error: Sorry, could not retrieve column 'aa'
- from table 'aaa.csv'. Please check spelling (or introduce name aliases)..
- documentclass[a4paper]{article}
- usepackage{pgf,pgfplots,pgfplotstable}
- pgfplotsset{compat=1.16}
- begin{document}
- begin{tikzpicture}
- begin{axis}[%
- xtick=data,
- xticklabels from table={aaa.csv}{aa},
- width=.9textwidth,
- title=test,
- xlabel={$x$},
- ylabel={$y$},
- ymin=0,xmin=0,
- ]
- addplot [red,mark=*,] table[col sep=comma,x=bb,y=cc] {aaa.csv};
- end{axis}
- end{tikzpicture}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement