How can I plot a 3D vertical plane in Mathematica?

Click For Summary
SUMMARY

To plot a 3D vertical plane defined by the equation x+y=2 in Mathematica, the user must utilize parametric plotting rather than the Plot3D function, which interprets inputs as functions of z. The correct approach involves defining the plane parametrically with x = x, y = 2 - x, and z = z. This method allows for the accurate representation of the vertical plane in 3D space, overcoming the limitations of Plot3D in handling such equations.

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of 3D coordinate systems and plotting
  • Knowledge of parametric equations
  • Basic concepts of surface plotting in mathematical software
NEXT STEPS
  • Research how to use ParametricPlot3D in Mathematica for surface plotting
  • Explore the documentation on coordinate systems in Mathematica
  • Learn about the differences between Plot3D and ParametricPlot3D
  • Investigate examples of plotting planes and surfaces in Mathematica
USEFUL FOR

Mathematics students, educators, and anyone using Mathematica for 3D visualizations, particularly those interested in plotting surfaces defined by linear equations.

SwaGGeReR
Messages
6
Reaction score
0
I'm trying to plot something like x+y=2 in 3D. The image should look like this:

h1jnw.png


Been trying to do it in Mathematica using Plot3D, but the it treats the input as a function of z.

Another example: Plot3D[x=4,{x,0,10},{y,0,10},AxesLabel{x,y,z}] plots z=4, not x=4.

A similar thread, with no conclusive answer: https://www.physicsforums.com/showthread.php?t=101840
 
Last edited:
Physics news on Phys.org
SwaGGeReR said:
I'm trying to plot something like x+y=2 in 3D. The image should look like this:

h1jnw.png


Been trying to do it in Mathematica using Plot3D, but the it treats the input as a function of z.

Another example: Plot3D[x=4,{x,0,10},{y,0,10},AxesLabel{x,y,z}] plots z=4, not x=4.

A similar thread, with no conclusive answer: https://www.physicsforums.com/showthread.php?t=101840

Hey SwaGGeReR and welcome to the forums.

Have you looked at the documentation?

Also what do the arguments mean for the function? What does {x,0,10} refer to? Are they just bounds for the variables?

The other thing is what is the default coordinate system for Mathematica? Is it RHS? LHS? Does the z-axis point up? (In many math programs it does and in many maths courses they treat z as pointed up and not in or out of the page).
 
I'm not familiar with Mathematica but maybe it is like Maple. Can you plot surfaces as parametric plots? If so, you could use the parameterization:

x = x
y = 2 - x
z = z
##\vec R(x,z) =\langle x, 2-x,z\rangle## and plot it using whatever syntax Mathematica requires.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K