3 import matplotlib.pyplot
as plt
5 import matplotlib.mlab
as mlab
10 print(
"plot_gaussian.py mean variance")
12 mean = float(sys.argv[1])
13 variance = float(sys.argv[2])
14 sigma = math.sqrt(variance)
15 x = np.linspace(-3*sigma+mean,3*sigma+mean,100)
16 plt.plot(x,mlab.normpdf(x,mean,sigma))