Skip to content

Instantly share code, notes, and snippets.

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')
if __name__ == '__main__':
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment