Scaling an image to make math text smaller

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Since you cant set the size of math notation I was wondering if we can scale the image to be larger so that math appears smaller?



Also I`d like to be able to change the x-axis and y-axis of the subplot to be similar to to the sample image?



Finally, this might be difficult but its possible to add some sample curves/paths in light gray for the distributions that roughly match the mean and variance with some random curvature similar to the example below?



Rotated Normal Distribution



sample realizations










share|improve this question



























    up vote
    2
    down vote

    favorite












    Since you cant set the size of math notation I was wondering if we can scale the image to be larger so that math appears smaller?



    Also I`d like to be able to change the x-axis and y-axis of the subplot to be similar to to the sample image?



    Finally, this might be difficult but its possible to add some sample curves/paths in light gray for the distributions that roughly match the mean and variance with some random curvature similar to the example below?



    Rotated Normal Distribution



    sample realizations










    share|improve this question

























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      Since you cant set the size of math notation I was wondering if we can scale the image to be larger so that math appears smaller?



      Also I`d like to be able to change the x-axis and y-axis of the subplot to be similar to to the sample image?



      Finally, this might be difficult but its possible to add some sample curves/paths in light gray for the distributions that roughly match the mean and variance with some random curvature similar to the example below?



      Rotated Normal Distribution



      sample realizations










      share|improve this question















      Since you cant set the size of math notation I was wondering if we can scale the image to be larger so that math appears smaller?



      Also I`d like to be able to change the x-axis and y-axis of the subplot to be similar to to the sample image?



      Finally, this might be difficult but its possible to add some sample curves/paths in light gray for the distributions that roughly match the mean and variance with some random curvature similar to the example below?



      Rotated Normal Distribution



      sample realizations







      tikz-pgf pgfmath






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 4 hours ago

























      asked 4 hours ago









      user171006

      304




      304




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          To increase the size of the plot, you just may adjust width and height. The second part of the question I don't understand. Indicating mean and variance is straightforward.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          pgfmathsetmacrooffset0.05
          begintikzpicture[font=sffamily,
          declare function=gauss(x,y,z)=offset+1/(y*sqrt(2*pi))*exp(-((x-z)^2)/(2*y^2));]

          beginaxis[samples=101,smooth,hide axis,width=20cm,height=11cm]
          addplot [domain=-3:3] (gauss(x,0.8,0),x);
          addplot [domain=-3:3] (1+gauss(x,1.2,0),1+x);
          addplot [domain=-3:3] (2+gauss(x,0.6,0),x);
          foreach [count=Y starting from 0] vari/DeltaX in 0.8/0,1.2/1,0.6/0
          typeoutvari/DeltaX
          edeftempnoexpanddraw[gray] (Y+offset,vari+DeltaX) -- (Y+gauss(vari,vari,0),vari+DeltaX)
          (Y+offset,-vari+DeltaX) -- (Y+gauss(vari,vari,0),-vari+DeltaX)
          (Y+offset,DeltaX) -- (Y+gauss(0,vari,0),DeltaX)
          ;
          temp

          draw[-latex] (0,-3) -- (0,3) coordinate[pos=0.4](x1) coordinate[pos=0.5] (y1)
          node[below right,rotate=-90]$x(t_i)$;
          draw[-latex] (0,-3) -- (0.5,-3) node[below left,rotate=-90]$fbigl(x(t_i)bigr)$;
          draw (1,-2) -- (1,4) coordinate[pos=0.6](x2) coordinate[pos=0.5] (y2);
          draw (2,-3) -- (2,3) coordinate[pos=0.6](x3) coordinate[pos=0.5] (y3);
          addplot[-latex] coordinates(-0.5,-4) (3,-4);
          path (0,-4) coordinate (z1) (1,-4) coordinate (z2) (2,-4) coordinate (z3);
          coordinate (t) at (3,-4.1);
          coordinate (xi) at (-0.6,4);
          addplot[-latex] coordinates(-0.5,-4) (3,-4);
          addplot[-latex] coordinates(-0.5,-4) (-0.5,4);
          endaxis
          foreach X in 1,2,3
          fill (xX) circle (2pt);
          draw ([xshift=-1mm]yX) -- ([xshift=1mm]yX);
          draw ([yshift=1mm]zX) -- ([yshift=-1mm]zX) node[below] $X$;
          node[anchor=north east] at (t) time;
          node[anchor=north east] at (xi) $x(t)$;
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x1) -- (x2);
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x2) -- (x3);
          endtikzpicture
          enddocument


          enter image description here



          Alternative you may just decrease the size of the font.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          pgfmathsetmacrooffset0.05
          begintikzpicture[font=sffamilysmall,
          declare function=gauss(x,y,z)=offset+1/(y*sqrt(2*pi))*exp(-((x-z)^2)/(2*y^2));]

          beginaxis[samples=101,smooth,hide axis,width=15cm,height=8cm]
          addplot [domain=-3:3] (gauss(x,0.8,0),x);
          addplot [domain=-3:3] (1+gauss(x,1.2,0),1+x);
          addplot [domain=-3:3] (2+gauss(x,0.6,0),x);
          foreach [count=Y starting from 0] vari/DeltaX in 0.8/0,1.2/1,0.6/0
          edeftempnoexpanddraw[gray] (Y+offset,vari+DeltaX) -- (Y+gauss(vari,vari,0),vari+DeltaX)
          (Y+offset,-vari+DeltaX) -- (Y+gauss(vari,vari,0),-vari+DeltaX)
          (Y+offset,DeltaX) -- (Y+gauss(0,vari,0),DeltaX)
          ;
          temp
          beginscope[thick]
          draw[-latex] (0,-3) -- (0,3) coordinate[pos=0.4](x1) coordinate[pos=0.5] (y1)
          node[below right,rotate=-90]$x(t_i)$;
          draw[-latex] (0,-3) -- (0.5,-3) node[below left,rotate=-90]$fbigl(x(t_i)bigr)$;
          draw[-latex] (1,-2) -- (1,4) coordinate[pos=0.6](x2) coordinate[pos=0.5] (y2);
          draw[dashed] (0,-3) -- (0,-3.5);
          draw[-latex] (2,-3) -- (2,3) coordinate[pos=0.6](x3) coordinate[pos=0.5] (y3);
          draw[dashed] (1,-2) -- (1,-3.5);
          path (0,-4) coordinate (z1) (1,-4) coordinate (z2) (2,-4) coordinate (z3);
          draw[dashed] (2,-3) -- (2,-3.5);
          coordinate (t) at (3,-4.1);
          coordinate (xi) at (-0.6,4);
          addplot[-latex] coordinates(-0.5,-3.5) (3,-3.5);
          addplot[-latex] coordinates(-0.5,-3.5) (-0.5,3.5);
          endscope
          pgfplotsinvokeforeach1,...,20
          draw[very thin] plot[smooth] coordinates
          (0,sign(2*rand-1)*(exp(-rand/0.8)-1))
          (1,1+sign(2*rand-1)*(exp(-rand/1.6)-1))
          (2,sign(2*rand-1)*(exp(-rand/1.2)-1));
          endaxis
          foreach X in 1,2,3
          fill (xX) circle (2pt);
          draw ([xshift=-1mm]yX) -- ([xshift=1mm]yX);
          draw ([yshift=1mm]zX) -- ([yshift=-1mm]zX) node[below] $X$;
          node[anchor=north east] at (t) time;
          node[anchor=north east] at (xi) $x(t)$;
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x1) -- (x2);
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x2) -- (x3);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer






















          • those lines to indicate mean/variance are nice thank you marmot youre awesome !
            – user171006
            4 hours ago










          • what i meant is would it be possible to add curves like in the diagram above that vary around the mean?
            – user171006
            4 hours ago






          • 1




            @user171006 I still don't understand, the curves are there. Do you want additional Gaussians?
            – marmot
            4 hours ago










          • ok curves might be the wrong word in this context. i mean sample realizations so those grey lines in the above diagram. also is it possible to detach the y-axis of the subplot and make it bold and move it in a little so it intersects the x-axis like in the diagram above?
            – user171006
            4 hours ago







          • 1




            @user171006 I added something. I guess one would first have to do some math to improve it.
            – marmot
            3 hours ago










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "85"
          ;
          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%2ftex.stackexchange.com%2fquestions%2f455002%2fscaling-an-image-to-make-math-text-smaller%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          To increase the size of the plot, you just may adjust width and height. The second part of the question I don't understand. Indicating mean and variance is straightforward.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          pgfmathsetmacrooffset0.05
          begintikzpicture[font=sffamily,
          declare function=gauss(x,y,z)=offset+1/(y*sqrt(2*pi))*exp(-((x-z)^2)/(2*y^2));]

          beginaxis[samples=101,smooth,hide axis,width=20cm,height=11cm]
          addplot [domain=-3:3] (gauss(x,0.8,0),x);
          addplot [domain=-3:3] (1+gauss(x,1.2,0),1+x);
          addplot [domain=-3:3] (2+gauss(x,0.6,0),x);
          foreach [count=Y starting from 0] vari/DeltaX in 0.8/0,1.2/1,0.6/0
          typeoutvari/DeltaX
          edeftempnoexpanddraw[gray] (Y+offset,vari+DeltaX) -- (Y+gauss(vari,vari,0),vari+DeltaX)
          (Y+offset,-vari+DeltaX) -- (Y+gauss(vari,vari,0),-vari+DeltaX)
          (Y+offset,DeltaX) -- (Y+gauss(0,vari,0),DeltaX)
          ;
          temp

          draw[-latex] (0,-3) -- (0,3) coordinate[pos=0.4](x1) coordinate[pos=0.5] (y1)
          node[below right,rotate=-90]$x(t_i)$;
          draw[-latex] (0,-3) -- (0.5,-3) node[below left,rotate=-90]$fbigl(x(t_i)bigr)$;
          draw (1,-2) -- (1,4) coordinate[pos=0.6](x2) coordinate[pos=0.5] (y2);
          draw (2,-3) -- (2,3) coordinate[pos=0.6](x3) coordinate[pos=0.5] (y3);
          addplot[-latex] coordinates(-0.5,-4) (3,-4);
          path (0,-4) coordinate (z1) (1,-4) coordinate (z2) (2,-4) coordinate (z3);
          coordinate (t) at (3,-4.1);
          coordinate (xi) at (-0.6,4);
          addplot[-latex] coordinates(-0.5,-4) (3,-4);
          addplot[-latex] coordinates(-0.5,-4) (-0.5,4);
          endaxis
          foreach X in 1,2,3
          fill (xX) circle (2pt);
          draw ([xshift=-1mm]yX) -- ([xshift=1mm]yX);
          draw ([yshift=1mm]zX) -- ([yshift=-1mm]zX) node[below] $X$;
          node[anchor=north east] at (t) time;
          node[anchor=north east] at (xi) $x(t)$;
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x1) -- (x2);
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x2) -- (x3);
          endtikzpicture
          enddocument


          enter image description here



          Alternative you may just decrease the size of the font.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          pgfmathsetmacrooffset0.05
          begintikzpicture[font=sffamilysmall,
          declare function=gauss(x,y,z)=offset+1/(y*sqrt(2*pi))*exp(-((x-z)^2)/(2*y^2));]

          beginaxis[samples=101,smooth,hide axis,width=15cm,height=8cm]
          addplot [domain=-3:3] (gauss(x,0.8,0),x);
          addplot [domain=-3:3] (1+gauss(x,1.2,0),1+x);
          addplot [domain=-3:3] (2+gauss(x,0.6,0),x);
          foreach [count=Y starting from 0] vari/DeltaX in 0.8/0,1.2/1,0.6/0
          edeftempnoexpanddraw[gray] (Y+offset,vari+DeltaX) -- (Y+gauss(vari,vari,0),vari+DeltaX)
          (Y+offset,-vari+DeltaX) -- (Y+gauss(vari,vari,0),-vari+DeltaX)
          (Y+offset,DeltaX) -- (Y+gauss(0,vari,0),DeltaX)
          ;
          temp
          beginscope[thick]
          draw[-latex] (0,-3) -- (0,3) coordinate[pos=0.4](x1) coordinate[pos=0.5] (y1)
          node[below right,rotate=-90]$x(t_i)$;
          draw[-latex] (0,-3) -- (0.5,-3) node[below left,rotate=-90]$fbigl(x(t_i)bigr)$;
          draw[-latex] (1,-2) -- (1,4) coordinate[pos=0.6](x2) coordinate[pos=0.5] (y2);
          draw[dashed] (0,-3) -- (0,-3.5);
          draw[-latex] (2,-3) -- (2,3) coordinate[pos=0.6](x3) coordinate[pos=0.5] (y3);
          draw[dashed] (1,-2) -- (1,-3.5);
          path (0,-4) coordinate (z1) (1,-4) coordinate (z2) (2,-4) coordinate (z3);
          draw[dashed] (2,-3) -- (2,-3.5);
          coordinate (t) at (3,-4.1);
          coordinate (xi) at (-0.6,4);
          addplot[-latex] coordinates(-0.5,-3.5) (3,-3.5);
          addplot[-latex] coordinates(-0.5,-3.5) (-0.5,3.5);
          endscope
          pgfplotsinvokeforeach1,...,20
          draw[very thin] plot[smooth] coordinates
          (0,sign(2*rand-1)*(exp(-rand/0.8)-1))
          (1,1+sign(2*rand-1)*(exp(-rand/1.6)-1))
          (2,sign(2*rand-1)*(exp(-rand/1.2)-1));
          endaxis
          foreach X in 1,2,3
          fill (xX) circle (2pt);
          draw ([xshift=-1mm]yX) -- ([xshift=1mm]yX);
          draw ([yshift=1mm]zX) -- ([yshift=-1mm]zX) node[below] $X$;
          node[anchor=north east] at (t) time;
          node[anchor=north east] at (xi) $x(t)$;
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x1) -- (x2);
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x2) -- (x3);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer






















          • those lines to indicate mean/variance are nice thank you marmot youre awesome !
            – user171006
            4 hours ago










          • what i meant is would it be possible to add curves like in the diagram above that vary around the mean?
            – user171006
            4 hours ago






          • 1




            @user171006 I still don't understand, the curves are there. Do you want additional Gaussians?
            – marmot
            4 hours ago










          • ok curves might be the wrong word in this context. i mean sample realizations so those grey lines in the above diagram. also is it possible to detach the y-axis of the subplot and make it bold and move it in a little so it intersects the x-axis like in the diagram above?
            – user171006
            4 hours ago







          • 1




            @user171006 I added something. I guess one would first have to do some math to improve it.
            – marmot
            3 hours ago














          up vote
          3
          down vote



          accepted










          To increase the size of the plot, you just may adjust width and height. The second part of the question I don't understand. Indicating mean and variance is straightforward.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          pgfmathsetmacrooffset0.05
          begintikzpicture[font=sffamily,
          declare function=gauss(x,y,z)=offset+1/(y*sqrt(2*pi))*exp(-((x-z)^2)/(2*y^2));]

          beginaxis[samples=101,smooth,hide axis,width=20cm,height=11cm]
          addplot [domain=-3:3] (gauss(x,0.8,0),x);
          addplot [domain=-3:3] (1+gauss(x,1.2,0),1+x);
          addplot [domain=-3:3] (2+gauss(x,0.6,0),x);
          foreach [count=Y starting from 0] vari/DeltaX in 0.8/0,1.2/1,0.6/0
          typeoutvari/DeltaX
          edeftempnoexpanddraw[gray] (Y+offset,vari+DeltaX) -- (Y+gauss(vari,vari,0),vari+DeltaX)
          (Y+offset,-vari+DeltaX) -- (Y+gauss(vari,vari,0),-vari+DeltaX)
          (Y+offset,DeltaX) -- (Y+gauss(0,vari,0),DeltaX)
          ;
          temp

          draw[-latex] (0,-3) -- (0,3) coordinate[pos=0.4](x1) coordinate[pos=0.5] (y1)
          node[below right,rotate=-90]$x(t_i)$;
          draw[-latex] (0,-3) -- (0.5,-3) node[below left,rotate=-90]$fbigl(x(t_i)bigr)$;
          draw (1,-2) -- (1,4) coordinate[pos=0.6](x2) coordinate[pos=0.5] (y2);
          draw (2,-3) -- (2,3) coordinate[pos=0.6](x3) coordinate[pos=0.5] (y3);
          addplot[-latex] coordinates(-0.5,-4) (3,-4);
          path (0,-4) coordinate (z1) (1,-4) coordinate (z2) (2,-4) coordinate (z3);
          coordinate (t) at (3,-4.1);
          coordinate (xi) at (-0.6,4);
          addplot[-latex] coordinates(-0.5,-4) (3,-4);
          addplot[-latex] coordinates(-0.5,-4) (-0.5,4);
          endaxis
          foreach X in 1,2,3
          fill (xX) circle (2pt);
          draw ([xshift=-1mm]yX) -- ([xshift=1mm]yX);
          draw ([yshift=1mm]zX) -- ([yshift=-1mm]zX) node[below] $X$;
          node[anchor=north east] at (t) time;
          node[anchor=north east] at (xi) $x(t)$;
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x1) -- (x2);
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x2) -- (x3);
          endtikzpicture
          enddocument


          enter image description here



          Alternative you may just decrease the size of the font.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          pgfmathsetmacrooffset0.05
          begintikzpicture[font=sffamilysmall,
          declare function=gauss(x,y,z)=offset+1/(y*sqrt(2*pi))*exp(-((x-z)^2)/(2*y^2));]

          beginaxis[samples=101,smooth,hide axis,width=15cm,height=8cm]
          addplot [domain=-3:3] (gauss(x,0.8,0),x);
          addplot [domain=-3:3] (1+gauss(x,1.2,0),1+x);
          addplot [domain=-3:3] (2+gauss(x,0.6,0),x);
          foreach [count=Y starting from 0] vari/DeltaX in 0.8/0,1.2/1,0.6/0
          edeftempnoexpanddraw[gray] (Y+offset,vari+DeltaX) -- (Y+gauss(vari,vari,0),vari+DeltaX)
          (Y+offset,-vari+DeltaX) -- (Y+gauss(vari,vari,0),-vari+DeltaX)
          (Y+offset,DeltaX) -- (Y+gauss(0,vari,0),DeltaX)
          ;
          temp
          beginscope[thick]
          draw[-latex] (0,-3) -- (0,3) coordinate[pos=0.4](x1) coordinate[pos=0.5] (y1)
          node[below right,rotate=-90]$x(t_i)$;
          draw[-latex] (0,-3) -- (0.5,-3) node[below left,rotate=-90]$fbigl(x(t_i)bigr)$;
          draw[-latex] (1,-2) -- (1,4) coordinate[pos=0.6](x2) coordinate[pos=0.5] (y2);
          draw[dashed] (0,-3) -- (0,-3.5);
          draw[-latex] (2,-3) -- (2,3) coordinate[pos=0.6](x3) coordinate[pos=0.5] (y3);
          draw[dashed] (1,-2) -- (1,-3.5);
          path (0,-4) coordinate (z1) (1,-4) coordinate (z2) (2,-4) coordinate (z3);
          draw[dashed] (2,-3) -- (2,-3.5);
          coordinate (t) at (3,-4.1);
          coordinate (xi) at (-0.6,4);
          addplot[-latex] coordinates(-0.5,-3.5) (3,-3.5);
          addplot[-latex] coordinates(-0.5,-3.5) (-0.5,3.5);
          endscope
          pgfplotsinvokeforeach1,...,20
          draw[very thin] plot[smooth] coordinates
          (0,sign(2*rand-1)*(exp(-rand/0.8)-1))
          (1,1+sign(2*rand-1)*(exp(-rand/1.6)-1))
          (2,sign(2*rand-1)*(exp(-rand/1.2)-1));
          endaxis
          foreach X in 1,2,3
          fill (xX) circle (2pt);
          draw ([xshift=-1mm]yX) -- ([xshift=1mm]yX);
          draw ([yshift=1mm]zX) -- ([yshift=-1mm]zX) node[below] $X$;
          node[anchor=north east] at (t) time;
          node[anchor=north east] at (xi) $x(t)$;
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x1) -- (x2);
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x2) -- (x3);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer






















          • those lines to indicate mean/variance are nice thank you marmot youre awesome !
            – user171006
            4 hours ago










          • what i meant is would it be possible to add curves like in the diagram above that vary around the mean?
            – user171006
            4 hours ago






          • 1




            @user171006 I still don't understand, the curves are there. Do you want additional Gaussians?
            – marmot
            4 hours ago










          • ok curves might be the wrong word in this context. i mean sample realizations so those grey lines in the above diagram. also is it possible to detach the y-axis of the subplot and make it bold and move it in a little so it intersects the x-axis like in the diagram above?
            – user171006
            4 hours ago







          • 1




            @user171006 I added something. I guess one would first have to do some math to improve it.
            – marmot
            3 hours ago












          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          To increase the size of the plot, you just may adjust width and height. The second part of the question I don't understand. Indicating mean and variance is straightforward.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          pgfmathsetmacrooffset0.05
          begintikzpicture[font=sffamily,
          declare function=gauss(x,y,z)=offset+1/(y*sqrt(2*pi))*exp(-((x-z)^2)/(2*y^2));]

          beginaxis[samples=101,smooth,hide axis,width=20cm,height=11cm]
          addplot [domain=-3:3] (gauss(x,0.8,0),x);
          addplot [domain=-3:3] (1+gauss(x,1.2,0),1+x);
          addplot [domain=-3:3] (2+gauss(x,0.6,0),x);
          foreach [count=Y starting from 0] vari/DeltaX in 0.8/0,1.2/1,0.6/0
          typeoutvari/DeltaX
          edeftempnoexpanddraw[gray] (Y+offset,vari+DeltaX) -- (Y+gauss(vari,vari,0),vari+DeltaX)
          (Y+offset,-vari+DeltaX) -- (Y+gauss(vari,vari,0),-vari+DeltaX)
          (Y+offset,DeltaX) -- (Y+gauss(0,vari,0),DeltaX)
          ;
          temp

          draw[-latex] (0,-3) -- (0,3) coordinate[pos=0.4](x1) coordinate[pos=0.5] (y1)
          node[below right,rotate=-90]$x(t_i)$;
          draw[-latex] (0,-3) -- (0.5,-3) node[below left,rotate=-90]$fbigl(x(t_i)bigr)$;
          draw (1,-2) -- (1,4) coordinate[pos=0.6](x2) coordinate[pos=0.5] (y2);
          draw (2,-3) -- (2,3) coordinate[pos=0.6](x3) coordinate[pos=0.5] (y3);
          addplot[-latex] coordinates(-0.5,-4) (3,-4);
          path (0,-4) coordinate (z1) (1,-4) coordinate (z2) (2,-4) coordinate (z3);
          coordinate (t) at (3,-4.1);
          coordinate (xi) at (-0.6,4);
          addplot[-latex] coordinates(-0.5,-4) (3,-4);
          addplot[-latex] coordinates(-0.5,-4) (-0.5,4);
          endaxis
          foreach X in 1,2,3
          fill (xX) circle (2pt);
          draw ([xshift=-1mm]yX) -- ([xshift=1mm]yX);
          draw ([yshift=1mm]zX) -- ([yshift=-1mm]zX) node[below] $X$;
          node[anchor=north east] at (t) time;
          node[anchor=north east] at (xi) $x(t)$;
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x1) -- (x2);
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x2) -- (x3);
          endtikzpicture
          enddocument


          enter image description here



          Alternative you may just decrease the size of the font.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          pgfmathsetmacrooffset0.05
          begintikzpicture[font=sffamilysmall,
          declare function=gauss(x,y,z)=offset+1/(y*sqrt(2*pi))*exp(-((x-z)^2)/(2*y^2));]

          beginaxis[samples=101,smooth,hide axis,width=15cm,height=8cm]
          addplot [domain=-3:3] (gauss(x,0.8,0),x);
          addplot [domain=-3:3] (1+gauss(x,1.2,0),1+x);
          addplot [domain=-3:3] (2+gauss(x,0.6,0),x);
          foreach [count=Y starting from 0] vari/DeltaX in 0.8/0,1.2/1,0.6/0
          edeftempnoexpanddraw[gray] (Y+offset,vari+DeltaX) -- (Y+gauss(vari,vari,0),vari+DeltaX)
          (Y+offset,-vari+DeltaX) -- (Y+gauss(vari,vari,0),-vari+DeltaX)
          (Y+offset,DeltaX) -- (Y+gauss(0,vari,0),DeltaX)
          ;
          temp
          beginscope[thick]
          draw[-latex] (0,-3) -- (0,3) coordinate[pos=0.4](x1) coordinate[pos=0.5] (y1)
          node[below right,rotate=-90]$x(t_i)$;
          draw[-latex] (0,-3) -- (0.5,-3) node[below left,rotate=-90]$fbigl(x(t_i)bigr)$;
          draw[-latex] (1,-2) -- (1,4) coordinate[pos=0.6](x2) coordinate[pos=0.5] (y2);
          draw[dashed] (0,-3) -- (0,-3.5);
          draw[-latex] (2,-3) -- (2,3) coordinate[pos=0.6](x3) coordinate[pos=0.5] (y3);
          draw[dashed] (1,-2) -- (1,-3.5);
          path (0,-4) coordinate (z1) (1,-4) coordinate (z2) (2,-4) coordinate (z3);
          draw[dashed] (2,-3) -- (2,-3.5);
          coordinate (t) at (3,-4.1);
          coordinate (xi) at (-0.6,4);
          addplot[-latex] coordinates(-0.5,-3.5) (3,-3.5);
          addplot[-latex] coordinates(-0.5,-3.5) (-0.5,3.5);
          endscope
          pgfplotsinvokeforeach1,...,20
          draw[very thin] plot[smooth] coordinates
          (0,sign(2*rand-1)*(exp(-rand/0.8)-1))
          (1,1+sign(2*rand-1)*(exp(-rand/1.6)-1))
          (2,sign(2*rand-1)*(exp(-rand/1.2)-1));
          endaxis
          foreach X in 1,2,3
          fill (xX) circle (2pt);
          draw ([xshift=-1mm]yX) -- ([xshift=1mm]yX);
          draw ([yshift=1mm]zX) -- ([yshift=-1mm]zX) node[below] $X$;
          node[anchor=north east] at (t) time;
          node[anchor=north east] at (xi) $x(t)$;
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x1) -- (x2);
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x2) -- (x3);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer














          To increase the size of the plot, you just may adjust width and height. The second part of the question I don't understand. Indicating mean and variance is straightforward.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          pgfmathsetmacrooffset0.05
          begintikzpicture[font=sffamily,
          declare function=gauss(x,y,z)=offset+1/(y*sqrt(2*pi))*exp(-((x-z)^2)/(2*y^2));]

          beginaxis[samples=101,smooth,hide axis,width=20cm,height=11cm]
          addplot [domain=-3:3] (gauss(x,0.8,0),x);
          addplot [domain=-3:3] (1+gauss(x,1.2,0),1+x);
          addplot [domain=-3:3] (2+gauss(x,0.6,0),x);
          foreach [count=Y starting from 0] vari/DeltaX in 0.8/0,1.2/1,0.6/0
          typeoutvari/DeltaX
          edeftempnoexpanddraw[gray] (Y+offset,vari+DeltaX) -- (Y+gauss(vari,vari,0),vari+DeltaX)
          (Y+offset,-vari+DeltaX) -- (Y+gauss(vari,vari,0),-vari+DeltaX)
          (Y+offset,DeltaX) -- (Y+gauss(0,vari,0),DeltaX)
          ;
          temp

          draw[-latex] (0,-3) -- (0,3) coordinate[pos=0.4](x1) coordinate[pos=0.5] (y1)
          node[below right,rotate=-90]$x(t_i)$;
          draw[-latex] (0,-3) -- (0.5,-3) node[below left,rotate=-90]$fbigl(x(t_i)bigr)$;
          draw (1,-2) -- (1,4) coordinate[pos=0.6](x2) coordinate[pos=0.5] (y2);
          draw (2,-3) -- (2,3) coordinate[pos=0.6](x3) coordinate[pos=0.5] (y3);
          addplot[-latex] coordinates(-0.5,-4) (3,-4);
          path (0,-4) coordinate (z1) (1,-4) coordinate (z2) (2,-4) coordinate (z3);
          coordinate (t) at (3,-4.1);
          coordinate (xi) at (-0.6,4);
          addplot[-latex] coordinates(-0.5,-4) (3,-4);
          addplot[-latex] coordinates(-0.5,-4) (-0.5,4);
          endaxis
          foreach X in 1,2,3
          fill (xX) circle (2pt);
          draw ([xshift=-1mm]yX) -- ([xshift=1mm]yX);
          draw ([yshift=1mm]zX) -- ([yshift=-1mm]zX) node[below] $X$;
          node[anchor=north east] at (t) time;
          node[anchor=north east] at (xi) $x(t)$;
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x1) -- (x2);
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x2) -- (x3);
          endtikzpicture
          enddocument


          enter image description here



          Alternative you may just decrease the size of the font.



          documentclass[tikz,border=3.14mm]standalone
          usepackagepgfplots
          pgfplotssetcompat=1.16
          begindocument
          pgfmathsetmacrooffset0.05
          begintikzpicture[font=sffamilysmall,
          declare function=gauss(x,y,z)=offset+1/(y*sqrt(2*pi))*exp(-((x-z)^2)/(2*y^2));]

          beginaxis[samples=101,smooth,hide axis,width=15cm,height=8cm]
          addplot [domain=-3:3] (gauss(x,0.8,0),x);
          addplot [domain=-3:3] (1+gauss(x,1.2,0),1+x);
          addplot [domain=-3:3] (2+gauss(x,0.6,0),x);
          foreach [count=Y starting from 0] vari/DeltaX in 0.8/0,1.2/1,0.6/0
          edeftempnoexpanddraw[gray] (Y+offset,vari+DeltaX) -- (Y+gauss(vari,vari,0),vari+DeltaX)
          (Y+offset,-vari+DeltaX) -- (Y+gauss(vari,vari,0),-vari+DeltaX)
          (Y+offset,DeltaX) -- (Y+gauss(0,vari,0),DeltaX)
          ;
          temp
          beginscope[thick]
          draw[-latex] (0,-3) -- (0,3) coordinate[pos=0.4](x1) coordinate[pos=0.5] (y1)
          node[below right,rotate=-90]$x(t_i)$;
          draw[-latex] (0,-3) -- (0.5,-3) node[below left,rotate=-90]$fbigl(x(t_i)bigr)$;
          draw[-latex] (1,-2) -- (1,4) coordinate[pos=0.6](x2) coordinate[pos=0.5] (y2);
          draw[dashed] (0,-3) -- (0,-3.5);
          draw[-latex] (2,-3) -- (2,3) coordinate[pos=0.6](x3) coordinate[pos=0.5] (y3);
          draw[dashed] (1,-2) -- (1,-3.5);
          path (0,-4) coordinate (z1) (1,-4) coordinate (z2) (2,-4) coordinate (z3);
          draw[dashed] (2,-3) -- (2,-3.5);
          coordinate (t) at (3,-4.1);
          coordinate (xi) at (-0.6,4);
          addplot[-latex] coordinates(-0.5,-3.5) (3,-3.5);
          addplot[-latex] coordinates(-0.5,-3.5) (-0.5,3.5);
          endscope
          pgfplotsinvokeforeach1,...,20
          draw[very thin] plot[smooth] coordinates
          (0,sign(2*rand-1)*(exp(-rand/0.8)-1))
          (1,1+sign(2*rand-1)*(exp(-rand/1.6)-1))
          (2,sign(2*rand-1)*(exp(-rand/1.2)-1));
          endaxis
          foreach X in 1,2,3
          fill (xX) circle (2pt);
          draw ([xshift=-1mm]yX) -- ([xshift=1mm]yX);
          draw ([yshift=1mm]zX) -- ([yshift=-1mm]zX) node[below] $X$;
          node[anchor=north east] at (t) time;
          node[anchor=north east] at (xi) $x(t)$;
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x1) -- (x2);
          draw[blue,thick,shorten >=2mm,shorten <=2mm] (x2) -- (x3);
          endtikzpicture
          enddocument


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 3 hours ago

























          answered 4 hours ago









          marmot

          64.9k471139




          64.9k471139











          • those lines to indicate mean/variance are nice thank you marmot youre awesome !
            – user171006
            4 hours ago










          • what i meant is would it be possible to add curves like in the diagram above that vary around the mean?
            – user171006
            4 hours ago






          • 1




            @user171006 I still don't understand, the curves are there. Do you want additional Gaussians?
            – marmot
            4 hours ago










          • ok curves might be the wrong word in this context. i mean sample realizations so those grey lines in the above diagram. also is it possible to detach the y-axis of the subplot and make it bold and move it in a little so it intersects the x-axis like in the diagram above?
            – user171006
            4 hours ago







          • 1




            @user171006 I added something. I guess one would first have to do some math to improve it.
            – marmot
            3 hours ago
















          • those lines to indicate mean/variance are nice thank you marmot youre awesome !
            – user171006
            4 hours ago










          • what i meant is would it be possible to add curves like in the diagram above that vary around the mean?
            – user171006
            4 hours ago






          • 1




            @user171006 I still don't understand, the curves are there. Do you want additional Gaussians?
            – marmot
            4 hours ago










          • ok curves might be the wrong word in this context. i mean sample realizations so those grey lines in the above diagram. also is it possible to detach the y-axis of the subplot and make it bold and move it in a little so it intersects the x-axis like in the diagram above?
            – user171006
            4 hours ago







          • 1




            @user171006 I added something. I guess one would first have to do some math to improve it.
            – marmot
            3 hours ago















          those lines to indicate mean/variance are nice thank you marmot youre awesome !
          – user171006
          4 hours ago




          those lines to indicate mean/variance are nice thank you marmot youre awesome !
          – user171006
          4 hours ago












          what i meant is would it be possible to add curves like in the diagram above that vary around the mean?
          – user171006
          4 hours ago




          what i meant is would it be possible to add curves like in the diagram above that vary around the mean?
          – user171006
          4 hours ago




          1




          1




          @user171006 I still don't understand, the curves are there. Do you want additional Gaussians?
          – marmot
          4 hours ago




          @user171006 I still don't understand, the curves are there. Do you want additional Gaussians?
          – marmot
          4 hours ago












          ok curves might be the wrong word in this context. i mean sample realizations so those grey lines in the above diagram. also is it possible to detach the y-axis of the subplot and make it bold and move it in a little so it intersects the x-axis like in the diagram above?
          – user171006
          4 hours ago





          ok curves might be the wrong word in this context. i mean sample realizations so those grey lines in the above diagram. also is it possible to detach the y-axis of the subplot and make it bold and move it in a little so it intersects the x-axis like in the diagram above?
          – user171006
          4 hours ago





          1




          1




          @user171006 I added something. I guess one would first have to do some math to improve it.
          – marmot
          3 hours ago




          @user171006 I added something. I guess one would first have to do some math to improve it.
          – marmot
          3 hours ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455002%2fscaling-an-image-to-make-math-text-smaller%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery