summaryrefslogtreecommitdiff
path: root/src/d_spektra.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/d_spektra.py')
-rw-r--r--src/d_spektra.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/d_spektra.py b/src/d_spektra.py
new file mode 100644
index 0000000..39ea719
--- /dev/null
+++ b/src/d_spektra.py
@@ -0,0 +1,20 @@
+import numpy as np
+from shared import *
+import crl, crl.tables
+
+plot_setup(width=0.7)
+
+for T in reversed([5000, 5500, 6500, 7500]):
+ wvl = np.linspace(380, 780, 100)
+ n = crl.CIEDaylightSpectrum(T).Yi(wvl)
+
+ plt.plot(wvl, n,
+ label="$D_{%d}$" % (T // 100))
+
+plt.xlabel("$\\lambda$ [nm]")
+plt.ylabel("$n_\\lambda(\\lambda)$")
+plt.xlim(380, 780)
+plt.ylim(0, 200)
+plt.legend()
+plot_grid()
+plot_export()