Writing:
ParametricPlot[{{x, 0}, {x, 1}}, {x, 0, 1}, Axes -> False]
I get:
while writing:
ParametricPlot[{{x, 0}, {x, 1}}, {x, 0, 1}, Axes -> False, Filling -> {1 -> {2}}]
I get an error instead of:
How can I correct? Thank you!
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityFilling
is not an option for ParametricPlot
. You can use, instead,
ParametricPlot[t {x, 0} + (1 - t) {x, 1}, {x, 0, 1}, {t, 0, 1},
Axes -> False, MeshFunctions -> {#4 &, #4 &}, Mesh -> {{0}, {1}},
MeshStyle -> {Orange, Blue}, BoundaryStyle -> None, PlotStyle -> LightBlue]
Alternatively,
ParametricPlot[{x, y}, {x, 0, 1}, {y, 0, 1}, Axes -> False,
MeshFunctions -> {#2 &, #2 &}, Mesh -> {{1}, {0}},
MeshStyle -> {Orange, Blue}, BoundaryStyle -> None, PlotStyle -> LightBlue]
same picture
ParametricPlot[{x, y}, {x, 0, 1}, {y, x, x^2}, Axes -> False]
, in your case{y, 0, 1}
. $\endgroup$