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?


1 Answer 1



\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.

  • 4
    Good point. I have added that style to the pgfplots manual. Commented Apr 21, 2011 at 19:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .