% arara: indent: {overwrite: yes}
\documentclass{article}
\usepackage{pgfplots}

\begin{document}

\begin{tikzpicture}
	\begin{axis}
		\addplot3[surf,
			colormap/cool,
			samples=20,
			domain=0:2*pi,y domain=0:2*pi,
		z buffer=sort]
		({(2+cos(deg(x)))*cos(deg(y+pi/2))}, 
		{(2+cos(deg(x)))*sin(deg(y+pi/2))}, 
		{sin(deg(x))});
	\end{axis}
\end{tikzpicture}

\end{document}
