% arara: pdflatex: {shell: yes}
\documentclass[tikz, margin=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[%view={70}{30},
z buffer = sort,
axis equal,
xmin=-5, xmax=5,
ymin=-5, ymax=5,
zmin=-5, zmax=5,
]
\addplot3[
raw gnuplot,
surf, draw=none,
colormap/blackwhite,
%colormap = {whiteblack}{color(0cm) = (white); color(1cm) = (black)},
%mesh,
%draw=black,
%very thin,
] gnuplot[id=surf]{
s=111;
b=2;
h=6;
r(u)=(2-cos(u));
p(u)=exp( -(0.5*u-pi)**2 );
q(u)=exp( -(u-1.5*pi)**2 );