# Remove border on pgfplot

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?

-

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

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.7}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis lines=none]
\end{axis}
\end{tikzpicture}
\end{document}

-

Try

\begin{axis}[
hide x axis,
hide y axis]


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

\begin{axis}[hide axis]

-
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