Basic of GNUPlot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
328 B

2 years ago
  1. set term cairolatex pdf
  2. set out 'fig3.tex'
  3. set samp 1000
  4. set xrange [-4:4]
  5. set key off
  6. set label 1 '\huge$\frac{1}{\sqrt{2\pi}\sigma}\,e^{-\frac{x^2}{2\sigma^2}}$' at -3.5,.34
  7. set label 2 '\Large$\sigma = 1$' at 0.95,.3
  8. set label 3 '\Large$\sigma = 2$' at 2.7,.1
  9. plot for [s=1:2] exp(-x**2/(2*s**2))/(s*sqrt(2*pi)) lw 3
  10. set out