Fill to the left of the y-axis only

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question



























    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?










    share|improve this question

























      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?










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 4 mins ago









      kglr

      168k8189392




      168k8189392










      asked 3 hours ago









      user120911

      46118




      46118




















          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]]


          enter image description here






          share|improve this answer





























            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]


            enter image description here



            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")]


            enter image description here





            share




















              Your Answer




              StackExchange.ifUsing("editor", function ()
              return StackExchange.using("mathjaxEditing", function ()
              StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
              StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
              );
              );
              , "mathjax-editing");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "387"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              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






























              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]]


              enter image description here






              share|improve this answer


























                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]]


                enter image description here






                share|improve this answer
























                  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]]


                  enter image description here






                  share|improve this answer














                  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]]


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 1 hour ago

























                  answered 2 hours ago









                  Okkes Dulgerci

                  3,3761616




                  3,3761616




















                      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]


                      enter image description here



                      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")]


                      enter image description here





                      share
























                        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]


                        enter image description here



                        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")]


                        enter image description here





                        share






















                          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]


                          enter image description here



                          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")]


                          enter image description here





                          share












                          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]


                          enter image description here



                          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")]


                          enter image description here






                          share











                          share


                          share










                          answered 9 mins ago









                          kglr

                          168k8189392




                          168k8189392



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              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













































































                              Popular posts from this blog

                              Peggy Mitchell

                              Palaiologos

                              The Forum (Inglewood, California)