Added labels to ex-6/plot.py

This commit is contained in:
Giù Marcer 2020-03-17 23:32:04 +01:00 committed by rnhmjoj
parent 92e347322b
commit 8298a24db0

View File

@ -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()