# How do you parametric plot?

1. Jul 13, 2011

### flyingpig

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. Jul 13, 2011

### 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?

3. Jul 13, 2011

### flyingpig

No I want to plot the line x = 6 and x = 0, two vertical lines.

4. Jul 13, 2011

### Avijeet

I think this is what you want

ParametricPlot[{{4 - t, t}, {4, t}, {6, t}}, {t, -6, 6}]

5. Jul 13, 2011

### 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.

6. Jul 15, 2011

### RTW69

To plot x=6

ParametricPlot[{6, t}, {t, -10, 10}, PlotRange -> 10]

7. Jul 26, 2011

### flyingpig

can you tell me each of the parameters within the code? Like what do they mean?

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