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 drawing a graph with pgfplot. The values aren't important, I just want to show the shape of the function and so I don't want a border around my graph.

I can't find how to remove/change the color of the border, is this possible?

share|improve this question
up vote 20 down vote accepted

You can use axis lines key either for every axis or specifically for one axis. See the pgfplots manual.

\begin{axis}[axis lines=none]
share|improve this answer


        hide x axis,
        hide y axis]

As Manuel said in a comment, the following would also work

\begin{axis}[hide axis]
share|improve this answer
I think hide axis works, but I'm not sure. – Manuel Dec 19 '12 at 21:16
@Manuel I have just tested and you are right, it does work. Perhaps you should post it as a third answer for the record? I will certainly vote it up! – Vivi Dec 19 '12 at 22:01
No, it's (almost) exactly the same as yours, you just forget it. Edit your answer. – Manuel Dec 19 '12 at 22:05

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.