![修改 tikz 3D 图像](https://linux22.com/image/336211/%E4%BF%AE%E6%94%B9%20tikz%203D%20%E5%9B%BE%E5%83%8F.png)
这是我想要的修改:
- 移除盒子并仅保留 3 个主轴
- 沿 y 方向倾斜内部的 3D 函数
- 使函数更加流畅
- 添加一些属于彩色表面的粗线
这是我的尝试:
\documentclass{article}
\usepackage{tikz, pgfplots}
\begin{document}
\begin{figure}
\begin{tikzpicture}[scale=2, transform shape]
\begin{axis}[samples=40, xlabel=$l_3$, ylabel=$l_3$, zlabel=\empty,
axis lines=middle]
\pgfplotsset{ticks=none}
\addplot3[surf, domain=0.2:5] {1/(x^2)+(1.7)^x+1.5*y};
\addplot3[draw=black,line width=2pt, domain=0.6:5.4] (1,{x},{2*x});
\addplot3[draw=black,line width=2pt, domain=1.1:5.9] (3,{x},{2*x});
\addplot3[draw=red,line width=2pt, domain=0.9:5.7] (0.3,{x},{2*x});
\addplot3[draw=red,line width=2pt, domain=0.85:5.7] (2.5,{x},{2*x});
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}
我该如何改善它?