From 255eead23a6b907f17682901186c3ca85104b3c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gi=C3=B9=20Marcer?= Date: Sat, 6 Jun 2020 09:58:00 +0200 Subject: [PATCH] =?UTF-8?q?misc:=20write=20the=20right=20=CE=BC=20and=20?= =?UTF-8?q?=CF=83=20in=20moyal-plot.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slides/misc/moyal-plot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/slides/misc/moyal-plot.py b/slides/misc/moyal-plot.py index a4da48f..617430c 100755 --- a/slides/misc/moyal-plot.py +++ b/slides/misc/moyal-plot.py @@ -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()