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

The legend box is covering parts of the graph (even though I removed the borders). How do I make the legend box transparent?

enter image description here

share|improve this question
up vote 19 down vote accepted

You can add fill=none to the legend style key as in this approach.



      legend style={fill=none}
      \addplot {x};

enter image description here

share|improve this answer
Repositioning the legend or decrease of its font size could also be an option. – Thorsten Donig Mar 4 '14 at 16:33
Thank you, works like a charm. No need to reposition or decrease font size now! – user3218615 Mar 4 '14 at 16:42

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.