misc: write the right μ and σ in moyal-plot.py

This commit is contained in:
Giù Marcer 2020-06-06 09:58:00 +02:00 committed by rnhmjoj
parent f5e9088156
commit 255eead23a

View File

@ -11,10 +11,13 @@ def moyal(x, μ, σ):
# plt.figure()
plt.figure(figsize=(3, 2))
plt.rcParams['font.size'] = 8
plt.ylim = (-0.02, 0.23)
# do plot
x = np.arange(-10, 30, 0.01)
plt.plot(x, moyal(x, 0, 1), color='#92182b')
μ = -0.22278298
σ = 1.1191486
plt.plot(x, moyal(x, μ, σ), color='gray')
# save fig
plt.tight_layout()