Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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