1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How do you parametric plot?

  1. Jul 13, 2011 #1
    1. The problem statement, all variables and given/known data

    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.
  2. jcsd
  3. Jul 13, 2011 #2


    Staff: Mentor

    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?
  4. Jul 13, 2011 #3
    No I want to plot the line x = 6 and x = 0, two vertical lines.
  5. Jul 13, 2011 #4
    I think this is what you want

    ParametricPlot[{{4 - t, t}, {4, t}, {6, t}}, {t, -6, 6}]
  6. Jul 13, 2011 #5


    Staff: Mentor

    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.
  7. Jul 15, 2011 #6
    To plot x=6

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

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: How do you parametric plot?