0

I drew the 3D curve z=xy\sin(x^2+y^2) with Mathematica as following

enter image description here

How can draw it with TikZ?

2

1 Answer 1

13
\documentclass[10pt,a4paper]{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}
\begin{document}

\begin{tikzpicture}
\begin{axis}[
%hide axis,
xlabel=$x$,ylabel=$y$,
mesh/interior colormap name=hot,
colormap/blackwhite,
]
\addplot3[domain=-3:3,surf,samples=41]
{x*y*sin(deg(x^2+y^2))};
\end{axis}
\end{tikzpicture}

\end{document}

plot

You must log in to answer this question.

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