misc: write the right μ and σ in moyal-plot.py
This commit is contained in:
parent
f5e9088156
commit
255eead23a
@ -11,10 +11,13 @@ def moyal(x, μ, σ):
|
|||||||
# plt.figure()
|
# plt.figure()
|
||||||
plt.figure(figsize=(3, 2))
|
plt.figure(figsize=(3, 2))
|
||||||
plt.rcParams['font.size'] = 8
|
plt.rcParams['font.size'] = 8
|
||||||
|
plt.ylim = (-0.02, 0.23)
|
||||||
|
|
||||||
# do plot
|
# do plot
|
||||||
x = np.arange(-10, 30, 0.01)
|
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
|
# save fig
|
||||||
plt.tight_layout()
|
plt.tight_layout()
|
||||||
|
Loading…
Reference in New Issue
Block a user