Understanding ParametricPlot in Mathematica: Deciphering Parameters and Ranges

  • Thread starter Thread starter flyingpig
  • Start date Start date
  • Tags Tags
    Parametric Plot
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
6 replies · 2K views
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}]...?