[Tex/LaTex] Remove border on pgfplot

pgfplots

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?

Best Answer

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]
\addplot[blue,samples=40]{sin(deg(x))};
\end{axis}
\end{tikzpicture}
\end{document}
Related Question