f[x_] = If[x >= 0 && x <= 2, {4 - x^2, 2 x - x^2}];
p1 = Plot[f[x], {x, -3, 3}, Frame -> True, GridLines -> Automatic,
PlotStyle -> Blue, ImageSize -> 550, Filling -> {1 -> {2, Orange}},
FillingStyle -> Directive[Opacity[0.1], Orange]];
p2 = Plot[{4 - x^2, 2 x - x^2}, {x, -3, 3}]; Show[{p1, p2},
PlotRange -> {-2, 5}]
Why do I get the area to the right colored?
f
is a vector-valued function, not the scalar function. $\endgroup$