From 8298a24db061a68aa3308af49189406c8a375c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gi=C3=B9=20Marcer?= Date: Tue, 17 Mar 2020 23:32:04 +0100 Subject: [PATCH] Added labels to ex-6/plot.py --- ex-6/plot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ex-6/plot.py b/ex-6/plot.py index 1d68280..90fc7bc 100755 --- a/ex-6/plot.py +++ b/ex-6/plot.py @@ -11,4 +11,6 @@ suptitle('Fraunhofer diffraction') title(sys.argv[1] if len(sys.argv) > 1 else "", loc='right') hist(a, np.insert(b, 0, a[0]), weights=f/sum(f), color='#dbbf0d', edgecolor='#595856', linewidth=0.5) +xlabel(r'$\theta$ (radians)') +ylabel(r'$I(\theta)$ (a.u.)') show()