0

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:

enter image description here

to this:

enter image description here

\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}
MS-SPO
  • 11,519
  • 1
    This post is similar, but the answer is made in plain TikZ (easier and better-looking IMHO): https://tex.stackexchange.com/questions/604334/how-to-plot-the-3d-graph-of-the-following-three-inequalities-in-latex-e-g-tik – Juan Castaño Apr 26 '23 at 20:44
  • You could restrict the planes using domain and stack the resulting parts in a specific way. – Jasper Habicht Apr 27 '23 at 07:32
  • There is also this: https://tex.stackexchange.com/q/294371/47927 – Jasper Habicht Aug 04 '23 at 08:52

0 Answers0