I am trying to plot the graphs of different surfaces, all of with are along the lines of "x + y + z = 1", but I cannot figure out how I would go about plotting these equations into latex. If there is a way to plot these graphs with out drawing the lines manually I would appreciate the assistance.
Asked
Active
Viewed 969 times
1
1 Answers
4
In this case it is easy, because you can invert the equation to
z(x,y) = 1 - x - y
This can be visualized with pgfplots.
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot3[surf] {1 - x - y};
\end{axis}
\end{tikzpicture}
\end{document}
Henri Menke
- 109,596

x+y+z=1which would be very simple. Could you add least add a sketch of what would be the desired result by editing your question? – Stefan Pinnow Dec 08 '16 at 17:22