%20%3D%20x%5E2%20%2B%20y%5E2%24%20%E5%9C%A8%20%24(0%2C0)%20%5Ctimes%20(1%2C1)%24%20%E4%B8%8A%EF%BC%9F.png)
大家好,感谢您的时间。
请帮忙使用 TikZ 在单位正方形上绘制 $f(x,y) = x^2 + y^2$。
谢谢。
答案1
这是一个非常基本的方法,源自pgf图手动的。
\documentclass{minimal}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[colorbar]
\addplot3[surf,faceted color=blue,samples=15,domain=0:1,y domain=0:1]{x^2+y^2};
\end{axis}
\end{tikzpicture}
\end{document}
所需的修改留给感兴趣的读者。