In [7]:
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.mlab as mlab
import matplotlib as mpl
import math
%matplotlib inline
plt.rcdefaults()
mpl.style.use('ggplot')
mean = 0
variance = 1
sigma = math.sqrt(variance)
x = np.arange(-1, 1, .1)
plt.plot(x,mlab.normpdf(x,mean,sigma))
# density2 = stats.kde.gaussian_kde(females['answers_total'])
# plt.show()
# plt.subplots_adjust(left=0.1, right=0.2, top=0.9, bottom=0.1)
plt.tight_layout()
# plt.savefig("test.pdf", format="pdf")
plt.show()
In [ ]: