Gabriel’s Horn

I saw Gabriel’s Horn on X (Twitter) posted by @sonukg4india. Looks nice, so let’s plot it ourselves.

\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
  \begin{axis}[view={-50}{20}, hide axis,
       unit vector ratio = 1 1 1]
    \addplot3[surf, domain = 0.1:8,
      restrict x to domain = 1:15,
      colormap/cool, opacity = 0.3, samples = 50,
      trig format plots = rad]
      ( {x}, {(1/x)*cos(y)}, {(1/x)*sin(y)} );
  \end{axis}
\end{tikzpicture}
\end{document}