How can I make the planes show up as surfaces where the ones on the front overlaps the ones on the back. I want to go from this:
to this:
\documentclass{article}
\usepackage{tikz,pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xmin=-4,xmax=4,ymin=-4,ymax=4,zmin=-4,zmax=4]
\addplot3[gray,surf]{x};
\addplot3[gray,surf]{-x+2};
\addplot3[gray,surf]{5*x+5};
\end{axis}
\end{tikzpicture}
\end{document}


domainand stack the resulting parts in a specific way. – Jasper Habicht Apr 27 '23 at 07:32