I am looking to create the sine graph for function y=sin(2x+pi/3), but it looks straight line.
\begin{tikzpicture}
\begin{axis}[axis lines=middle,axis on top,xlabel=$x$,ylabel=$y$,
xmin=-4,xmax=4,ymin=-1,ymax=1,ytick=\empty,
xtick={-3.66,-0.52,2.62},xticklabels={$\frac{-7\pi}{6}$,$\frac{-\pi}{6}$,$\frac{5\pi}{6}$,}]
\addplot []{sin(2*x+pi/3)};
\end{axis}
\end{tikzpicture}

xtick={-7*pi/6,-pi/6,5*pi/6}. If you only have three labels, this might be the easier way to go. – Jun 13 '19 at 03:53