diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-02-16 11:14:09 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-02-16 11:18:55 +0100 |
commit | 87eb67408f9230315494a8cf66fe264196a04ad0 (patch) | |
tree | 63ee9d8b92b7cffaa38d83b4222ffd1e391eb75b /src/d_spektra.py |
Diffstat (limited to 'src/d_spektra.py')
-rw-r--r-- | src/d_spektra.py | 20 |
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() |