Fill to the left of the y-axis only

Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I have the following code that produces a plot of a Normal distribution:
Plot[Table[PDF[NormalDistribution[ü, 3], x], ü, 4] // Evaluate, x, -15, 15,
Filling -> None, Axes -> True, True, Ticks -> None,
PlotStyle -> RGBColor[0.368417, 0.506779, 0.709798],
RGBColor[0.880722, 0.611041, 0.142051]]
How do I fill to the left of the y-axis only?
filling
add a comment |Â
up vote
3
down vote
favorite
I have the following code that produces a plot of a Normal distribution:
Plot[Table[PDF[NormalDistribution[ü, 3], x], ü, 4] // Evaluate, x, -15, 15,
Filling -> None, Axes -> True, True, Ticks -> None,
PlotStyle -> RGBColor[0.368417, 0.506779, 0.709798],
RGBColor[0.880722, 0.611041, 0.142051]]
How do I fill to the left of the y-axis only?
filling
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have the following code that produces a plot of a Normal distribution:
Plot[Table[PDF[NormalDistribution[ü, 3], x], ü, 4] // Evaluate, x, -15, 15,
Filling -> None, Axes -> True, True, Ticks -> None,
PlotStyle -> RGBColor[0.368417, 0.506779, 0.709798],
RGBColor[0.880722, 0.611041, 0.142051]]
How do I fill to the left of the y-axis only?
filling
I have the following code that produces a plot of a Normal distribution:
Plot[Table[PDF[NormalDistribution[ü, 3], x], ü, 4] // Evaluate, x, -15, 15,
Filling -> None, Axes -> True, True, Ticks -> None,
PlotStyle -> RGBColor[0.368417, 0.506779, 0.709798],
RGBColor[0.880722, 0.611041, 0.142051]]
How do I fill to the left of the y-axis only?
filling
filling
edited 4 mins ago
kglr
168k8189392
168k8189392
asked 3 hours ago
user120911
46118
46118
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
4
down vote
How about this:
f[x_] := PDF[NormalDistribution[4, 3], x]
Show[Plot[f[x], x, -15, 15, Ticks -> None,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051]],
Plot[f[x], x, -15, 0,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051],
PlotRange -> All, Filling -> Axis]]

add a comment |Â
up vote
1
down vote
ConditionalExpression combined with the option Filling:
Plot[PDF[NormalDistribution[4, 3], x], ConditionalExpression[0, x <= 0], x, -15, 15,
Ticks -> None,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051], None,
Filling -> 1 -> 2]

Plot[Evaluate @ Append[Table[PDF[NormalDistribution[ü, 3], x], ü, 3, 4, 5],
ConditionalExpression[0, x <= 0]] , x, -15, 15,
Filling -> 1 -> 4, 2 -> 4, 3 -> 4,
Ticks -> None,
PlotStyle -> Append[ColorData[97] /@ 1, 2, 3, None],
PlotLegends -> ("[Mu] = " <> # & /@ "3", "4", "5")]

add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
How about this:
f[x_] := PDF[NormalDistribution[4, 3], x]
Show[Plot[f[x], x, -15, 15, Ticks -> None,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051]],
Plot[f[x], x, -15, 0,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051],
PlotRange -> All, Filling -> Axis]]

add a comment |Â
up vote
4
down vote
How about this:
f[x_] := PDF[NormalDistribution[4, 3], x]
Show[Plot[f[x], x, -15, 15, Ticks -> None,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051]],
Plot[f[x], x, -15, 0,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051],
PlotRange -> All, Filling -> Axis]]

add a comment |Â
up vote
4
down vote
up vote
4
down vote
How about this:
f[x_] := PDF[NormalDistribution[4, 3], x]
Show[Plot[f[x], x, -15, 15, Ticks -> None,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051]],
Plot[f[x], x, -15, 0,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051],
PlotRange -> All, Filling -> Axis]]

How about this:
f[x_] := PDF[NormalDistribution[4, 3], x]
Show[Plot[f[x], x, -15, 15, Ticks -> None,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051]],
Plot[f[x], x, -15, 0,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051],
PlotRange -> All, Filling -> Axis]]

edited 1 hour ago
answered 2 hours ago
Okkes Dulgerci
3,3761616
3,3761616
add a comment |Â
add a comment |Â
up vote
1
down vote
ConditionalExpression combined with the option Filling:
Plot[PDF[NormalDistribution[4, 3], x], ConditionalExpression[0, x <= 0], x, -15, 15,
Ticks -> None,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051], None,
Filling -> 1 -> 2]

Plot[Evaluate @ Append[Table[PDF[NormalDistribution[ü, 3], x], ü, 3, 4, 5],
ConditionalExpression[0, x <= 0]] , x, -15, 15,
Filling -> 1 -> 4, 2 -> 4, 3 -> 4,
Ticks -> None,
PlotStyle -> Append[ColorData[97] /@ 1, 2, 3, None],
PlotLegends -> ("[Mu] = " <> # & /@ "3", "4", "5")]

add a comment |Â
up vote
1
down vote
ConditionalExpression combined with the option Filling:
Plot[PDF[NormalDistribution[4, 3], x], ConditionalExpression[0, x <= 0], x, -15, 15,
Ticks -> None,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051], None,
Filling -> 1 -> 2]

Plot[Evaluate @ Append[Table[PDF[NormalDistribution[ü, 3], x], ü, 3, 4, 5],
ConditionalExpression[0, x <= 0]] , x, -15, 15,
Filling -> 1 -> 4, 2 -> 4, 3 -> 4,
Ticks -> None,
PlotStyle -> Append[ColorData[97] /@ 1, 2, 3, None],
PlotLegends -> ("[Mu] = " <> # & /@ "3", "4", "5")]

add a comment |Â
up vote
1
down vote
up vote
1
down vote
ConditionalExpression combined with the option Filling:
Plot[PDF[NormalDistribution[4, 3], x], ConditionalExpression[0, x <= 0], x, -15, 15,
Ticks -> None,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051], None,
Filling -> 1 -> 2]

Plot[Evaluate @ Append[Table[PDF[NormalDistribution[ü, 3], x], ü, 3, 4, 5],
ConditionalExpression[0, x <= 0]] , x, -15, 15,
Filling -> 1 -> 4, 2 -> 4, 3 -> 4,
Ticks -> None,
PlotStyle -> Append[ColorData[97] /@ 1, 2, 3, None],
PlotLegends -> ("[Mu] = " <> # & /@ "3", "4", "5")]

ConditionalExpression combined with the option Filling:
Plot[PDF[NormalDistribution[4, 3], x], ConditionalExpression[0, x <= 0], x, -15, 15,
Ticks -> None,
PlotStyle -> RGBColor[0.880722, 0.611041, 0.142051], None,
Filling -> 1 -> 2]

Plot[Evaluate @ Append[Table[PDF[NormalDistribution[ü, 3], x], ü, 3, 4, 5],
ConditionalExpression[0, x <= 0]] , x, -15, 15,
Filling -> 1 -> 4, 2 -> 4, 3 -> 4,
Ticks -> None,
PlotStyle -> Append[ColorData[97] /@ 1, 2, 3, None],
PlotLegends -> ("[Mu] = " <> # & /@ "3", "4", "5")]

answered 9 mins ago
kglr
168k8189392
168k8189392
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f184688%2ffill-to-the-left-of-the-y-axis-only%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password