Tikz로 3D 곡선 $z=xy\sin(x^2+y^2)$ 그리기

Tikz로 3D 곡선 $z=xy\sin(x^2+y^2)$ 그리기

z=xy\sin(x^2+y^2)Mathematica를 사용하여 다음과 같이 3D 곡선을 그렸습니다.

여기에 이미지 설명을 입력하세요

로 어떻게 그릴 수 있나요 TikZ?

답변1

\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}

구성

관련 정보