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.

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

When defining the pgfplots legend entries myself, I have a problem when using dashed lines in combination with marks. The mark is also dashed (or dotted, etc.), just as the accompanying line is. Is there a way of making sure that marks are drawn completely when using dashed/dotted/etc. lines?




    legend pos=south east,
    legend entries={Entry 1,Entry 2,Entry 3}
    \addlegendimage{blue,only marks,mark=oplus}
    \addlegendimage{blue,dashed,no marks}
    \addplot+[black,no marks,domain=0:10]


enter image description here

share|improve this question
use this: \addlegendimage{blue,dashed,mark=oplus,mark options=solid} – oerpli Aug 2 '13 at 9:30
Related tex.stackexchange.com/questions/84287/… – percusse Aug 2 '13 at 9:38
Thanks oerpli, that works like a charm! – graafderk Aug 2 '13 at 9:50

Use this:

\addlegendimage{blue,dashed,mark=oplus,mark options=solid}
share|improve this answer
sorry for the late answer - have been in holidays. – oerpli Sep 9 '13 at 18:25

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.