1
$\begingroup$

Consider

curves = {{x, x, 0}, {x, 2 x, 0}}
ParametricPlot3D[curves, {x, 0, 1}]
ParametricPlot3D[curves, {x, 0, 1}, PlotStyle -> {Red, Green}]
ParametricPlot3D[{{x, x, 0}, {x, 2 x, 0}}, {x, 0, 1}, PlotStyle -> {Red, Green}]

In the first two cases, neither does ParametricPlot3D automatically colour grade the curves nor apply the explicit PlotSyle.

It works as intended in the third syntax.

Why is this so?


Note:Doesn't occur in Plot,Plot3D,ParametricPlot

$\endgroup$

1 Answer 1

1
$\begingroup$
curves = {{x, x, 0}, {x, 2 x, 0}};

ParametricPlot3D[Evaluate @ curves, {x, 0, 1}]

enter image description here

ParametricPlot3D[Evaluate @ curves, {x, 0, 1},    PlotStyle -> {Red, Green}]

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ works but why is it needed here and not for others, say plot3D? $\endgroup$
    – lineage
    Commented May 3, 2020 at 22:52
  • $\begingroup$ @lineage, not sure why. $\endgroup$
    – kglr
    Commented May 3, 2020 at 22:58

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.