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

I'm attempting to remove or 'turn off' the legend border in pgfplots, but I can't seem to figure out how to do it. I assume it will look something like this:

\begin{axis}[ legend style={?}]

where ? is a property related to the legend border (or box) that I can't seem to find. The pgfplots help is really great, but I haven't seen this addressed anywhere. Does anyone know how to accomplish this simple task?

share|improve this question
    
to turn off the border around filled areas (a related question), there is a bug with the draw=none option. See tex.stackexchange.com/questions/99861/… – PatrickT Oct 1 '15 at 6:09

Try

\begin{axis}[ legend style={draw=none}]

That looks like it might be asking for no legend to be drawn at all but actually it just applies to the rectangle around the legend.

share|improve this answer
    
Works like a charm, thanks! – Matt Williams Dec 13 '10 at 13:06
    
Good point. I have added that style to the pgfplots manual. – Christian Feuersänger Apr 21 '11 at 19:10

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.