可以参考一下这个:Is it possible to remove the mesh but keep the outline of this pgf plot?,适当调整一下参数看能不能符合需求。
个人建议,可以考虑使用其它工具绘制,再用TikZ进行标注,这样可确保字体、字号等与正文的一致性。
一个可能的参数:
\begin{axis}[%
domain=-1:1, y domain=-1:1,
axis lines=center,
ticks=none,
enlargelimits=false,
xmin=-1, xmax=1, ymin=-1, ymax=1, zmin=-2, zmax=2,
xlabel=$x$, ylabel=$y$, zlabel=$z$,
every axis x label/.style={
at={(axis cs:1,0,0)},
anchor=west,
},
every axis y label/.style={
at={(axis cs:0,1,0)},
anchor=west,
},
every axis z label/.style={
at={(axis cs:0,0,2)},
anchor=south,
},
colormap={blueblack}{color=(black) color=(white)}]
\addplot3[point meta={1-ifthenelse(abs(x)==1,1,ifthenelse(abs(y)==1,1,0))},
z buffer=sort,
surf,opacity=0,
samples=30,fill opacity=0.5] {x^2-y^2};
\end{axis}
\end{tikzpicture}
其结果为:
问 用Latex画马鞍面,要求取点多但网格线少,如何实现?