I am trying to plot a graph of cos(sin(x)) and the line isn't smooth at all. I've tried to increase the number of samples as well as adding 'smoothing' and messing around with the tension values, but neither worked. Is there any way to fix this? Below is the code and output. Thank you!
\begin{tikzpicture}
\begin{axis}[
axis y line=middle,
axis x line=middle,
grid=both,
enlarge y limits=true,
xlabel={\(x\)},
ylabel={\(\cos{(\sin{(x)})}\)},
xtick={
-2*pi, -(3*pi)/2, -pi, -pi/2,
pi/2, pi, (3*pi)/2, 2*pi
},
xticklabels={
$-2\pi$, $-\frac{3\pi}{2}$, $-\pi$, $-\frac{\pi}{2}$,
$\frac{\pi}{2}$, $\pi$, $\frac{3\pi}{2}$, $2\pi$
},
domain=-2*pi:2*pi
]
\addplot [
samples=1000,
color=red,
]
{cos(sin(deg(x)))};
\end{axis}
\end{tikzpicture}\\ \vspace*{0.7cm}