2
$\begingroup$

I am trying to make a simulation of an airfoil in Mathematica. The final coordinates of the airfoil are parametric, but some of the other things like chord line are f(x) functions. Is there any way that I can plot a normal function and a parametric function on the same graph?

Thank you.

$\endgroup$
2
  • $\begingroup$ Can you provide a specific example with working code ? $\endgroup$ Commented Dec 6, 2012 at 20:09
  • $\begingroup$ Have you looked at Show[]? $\endgroup$
    – Jagra
    Commented Dec 6, 2012 at 20:12

1 Answer 1

7
$\begingroup$

Combining two different plot types with Show

Show[
 ParametricPlot[{Sin[3 x], Cos[4 x]}, {x, -2 \[Pi], 2 \[Pi]}],
 Plot[x^2, {x, -2 \[Pi], 2 \[Pi]}, PlotStyle -> Red]
]

Mathematica graphics

or plotting multiple parametric functions in one ParametricPlot statement:

ParametricPlot[{{Sin[3 x], Cos[4 x]}, {x, x^2}}, {x, -2 \[Pi], 2 \[Pi]}, PlotRange -> {-1, 1}]

Mathematica graphics

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.