Skip to content

Instantly share code, notes, and snippets.

@falgon
Created September 25, 2018 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save falgon/63bfa6f2039ad25379d441831f4bb648 to your computer and use it in GitHub Desktop.
Save falgon/63bfa6f2039ad25379d441831f4bb648 to your computer and use it in GitHub Desktop.
blog fig
import scipy.stats.distributions as dis
import numpy as np
import pylab as pl
from matplotlib import pyplot as plt
def main():
plt.rc('text', aa=True, usetex=True)
x = np.arange(-5, 5, 0.1)
for i in range(1, 6):
pl.plot(x, dis.norm.pdf(x, scale=i), label=r'$\sigma = ' + str(i) + r'$')
pl.legend(loc='upper right')
pl.savefig('norm.png')
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment