I need a graph of a normal bell curve centered around t with a variance as small as possible (without being straight line). I've found a bunch of methods to plot a normal graph, but none where the variance/standard deviation can be explicitly stated. Here's what I am looking for but preferably even thinner:



  • How about xscale? – Symbol 1 Apr 19 '18 at 21:56
  • I'm extremely new to latex so you are going to need to be more specific, sorry I should have clarified – undergrad Apr 19 '18 at 22:03
  • You can make an MWE, or find what you want Seeing examples on the web page TexExample.NET. – J Leon V. Apr 19 '18 at 22:23

enter image description here

\tikzset{declare function={myGauss(\x,\y,\z)=exp(-(\x-\y)*(\x-\y)/(\z*\z));}}
% this is a Gaussian centered at \y with a width controlled by \z
\draw plot[domain=-0.1:0.1,variable=\x,samples=100] ({\x},{myGauss(\x,0,0.03)});

EDIT: Here is a proposal. I can't really recommend to just refer to the Gaussian a "the plot below".

enter image description here

\tikzset{declare function={myGauss(\x,\y,\z)=3*exp(-(\x-\y)*(\x-\y)/(\z*\z));}}
% this is a Gaussian centered at \y with a width controlled by \z

\draw[-latex] (-1,0) -- (2,0) node[below]{$x$};
\draw[-latex] (-1,0) -- (-1,3.5) node[left]{$y$};
\draw[thick] plot[domain=-0.5:0.5,variable=\x,samples=100] ({\x},{myGauss(\x,0,0.1)});
\caption{A narrow Gaussian.}
In Figure~\ref{fig:Gaussian}, we show a narrow Gaussian.

  • This is showing up extremely small in my document, any way to make it bigger? – undergrad Apr 20 '18 at 0:20
  • @undergrad Bigger meaning higher? If so, do \tikzset{declare function={myGauss(\x,\y,\z)=5*exp(-(\x-\y)*(\x-\y)/(\z*\z));}} or something like that. If you mean wider, do \draw plot[domain=-0.5:0.5,variable=\x,samples=100] ({\x},{myGauss(\x,0,0.15)}); or something along those lines. – user121799 Apr 20 '18 at 0:28
  • I've attached a screen shot of my issue in my OP – undergrad Apr 20 '18 at 0:30
  • @undergrad I still don't know whether you want it to become taller, wider, or both. I'd also recommend to put it in a figure environment, possibly a wrapfig since it will be narrow. – user121799 Apr 20 '18 at 0:34
  • I just want to scale it, so the actual image is larger – undergrad Apr 20 '18 at 0:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.