Understanding ParametricPlot in Mathematica: Deciphering Parameters and Ranges

  • Thread starter Thread starter flyingpig
  • Start date Start date
  • Tags Tags
    Parametric Plot
AI Thread Summary
The discussion focuses on using Mathematica's ParametricPlot to graph the equation y = 4 - x and vertical lines at x = 0 and x = 6. A user initially attempts to create a parametric plot but realizes it only expands the y-values instead of plotting the desired vertical lines. Clarification is provided that to plot vertical lines, a different approach is needed rather than using parametric equations. The conversation highlights the importance of understanding how parameters work in the context of plotting in Mathematica. Ultimately, the user seeks a better grasp of the parameters within the ParametricPlot function.
flyingpig
Messages
2,574
Reaction score
1

Homework Statement



On Mathematica.

Let's say I want to plot

y = 4 - x

x = 6, x = 0

So a parametric equation would be

y = 4 - t

x = t

So I tried ParametricPlot[{y = 4 -t, x = t},{t,0,6}]

But the range (the t values) aer only expanding the y-values.
 
Physics news on Phys.org
flyingpig said:

Homework Statement



On Mathematica.

Let's say I want to plot

y = 4 - x

x = 6, x = 0
As you show it here, the parametric plot would consist of two points: (6, -2) and (0, 4). Is that what you had in mind?
flyingpig said:
So a parametric equation would be

y = 4 - t

x = t

So I tried ParametricPlot[{y = 4 -t, x = t},{t,0,6}]

But the range (the t values) aer only expanding the y-values.
 
No I want to plot the line x = 6 and x = 0, two vertical lines.
 
I think this is what you want

ParametricPlot[{{4 - t, t}, {4, t}, {6, t}}, {t, -6, 6}]
 
flyingpig said:
No I want to plot the line x = 6 and x = 0, two vertical lines.
In that case, I don't think you want to do a parametric plot. What you want to plot are three lines: y = 4 - x, x = 0, and x = 6. For a set of parametric equations, you would have x as a function of the parameter, and y as another (or possibly the same)function of the same parameter, and the graph would be the set of (x, y) values.

It's possible I'm not understanding what you're trying to do.
 
To plot x=6

ParametricPlot[{6, t}, {t, -10, 10}, PlotRange -> 10]
 
can you tell me each of the parameters within the code? Like what do they mean?

ParametricPlot[f...,{range}]...?
 

Similar threads

Replies
1
Views
2K
Replies
1
Views
2K
Replies
6
Views
2K
Replies
5
Views
2K
Replies
10
Views
2K
Replies
6
Views
2K
Replies
4
Views
2K
Back
Top