I'm trying to plot arctan(x) with pgfplots but I don't get a good output. Here is my code:
\begin{cfigur}\begin{axis}[
width=160pt,compat=1.5.1,grid style={ultra thin},every axis plot post/.append style={thick},
x tick label style={font=\tiny},y tick label style={font=\tiny},
scale only axis,grid=major,axis lines=middle,
xlabel={$x$},
ylabel={$y$},
xmin=-200,
xmax=200,
domain=-200:210,
ymin=-5.5,
ymax=5.5,
xtick={-150,-100,...,150},
ytick={-5, -4,...,5},
restrict y to domain=-20:20,
legend style={at={(0.5,-0.05)},anchor=north,nodes={right}},
]
\addplot[mark=none,color=blue, samples=500]{atan(x)};
\addlegendentry{$y = \tan^{-1}x $};
\end{axis}\end{cfigur}

{}button in the editor (which simply indents by four spaces) but please always make a complete document starting\documentclassand all loading needed packages, so people can test their answers. – David Carlisle Feb 17 '14 at 20:38