How do I smooth out the corners in the following graph?
\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}[>=latex]
\begin{axis}[
every axis/.append style={font=\scriptsize},
x=.75cm,
y=.75cm,
axis x line=center,
axis y line=center,
xtick={-5,-4,...,5},
ytick={-5,-4,...,5},
xlabel={$x$},
ylabel={$y$},
xlabel style={below right},
ylabel style={above left},
xmin=-5.5,
xmax=5.5,
ymin=-5.5,
ymax=5.5]
\addplot [line width=2pt,mark=none,domain=-5:-2] {3};
\addplot [line width=2pt,mark=none,domain=-2:-1] { 2*x^2-5};
\addplot [line width=2pt,mark=none,domain=-1:1] {-3};
\addplot [line width=2pt,mark=none,domain=1:2] {2*x^2-5};
\addplot [line width=2pt,mark=none,domain=2:5] {3};
\end{axis}
\end{tikzpicture}
\end{document}



xandyunits and the font size. Perhaps you just chose to omit these, but since you reworked my MWE very nicely I'm wondering whether there's a deeper significance to this. – A.Ellett May 28 '14 at 04:42standalonedocument, thexandyunits don't seem relevant – cmhughes May 28 '14 at 04:51