答案1
添加samples y=0
会删除连接端点的线。
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot3 [
domain=0:10,
% ----------
% add `samples y=0' to remove the line connecting the endpoints
samples y=0,
% ----------
] (x, 25, {x^2});
\end{axis}
\end{tikzpicture}
\end{document}