Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

Thanks!

share|improve this question
3  
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 ! –  Raj Jan 16 '13 at 9:57
add comment

1 Answer

up vote 3 down vote accepted

The answer should be -

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

share|improve this answer
add comment

Your Answer

 
discard

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.