3

I'd like to draw an arbitrary 3D manifold, such as this, with gridlines and labeled axis, using TikZ:

enter image description here

There are a few similar posts here and elsewhere, but nothing that quite achieves what I'm looking for.

1 Answer 1

4

pgfplots offers such plots.

\documentclass[tikz,border=3mm]{standalone}
\usepackage{pgfplots} % package used to draw plots  
\pgfplotsset{compat=1.17}
\begin{document}
\begin{tikzpicture}
    \begin{axis}[trig format plots=rad]
        \addplot3 [surf,fill=white,domain=0:6,point meta=1] {(1+sin(x/2))*sin(x)*cos(y)};
    \end{axis}
\end{tikzpicture}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .