TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the pgfplot, I would like to have a line plot from a table which is read from a .csv file. I would like to have a line which is dashed and has a marker.

I put the code like this -

\addplot table[x=N,y=No_Sym][mark=*, red, dashed] {data.dat};

However this does not work. Can anyone tell me the right way to do it.


share|improve this question
The line styles need to be provided to the \addplot command, not the table keyword, so you would say \addplot [mark=*, red, dashed] table [x=N,y=No_Sym] {data.dat}; – Jake Jan 16 '13 at 9:36
yes this works ! thanks ! – knowledge_seeker Jan 16 '13 at 9:57
up vote 4 down vote accepted

The answer should be -

\addplot [mark=*, red, dashed] table[x=N,y=No_Sym] {data.dat};

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.