diff options
Diffstat (limited to 'src/pasek_cct.py')
-rw-r--r-- | src/pasek_cct.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pasek_cct.py b/src/pasek_cct.py new file mode 100644 index 0000000..1653afd --- /dev/null +++ b/src/pasek_cct.py @@ -0,0 +1,14 @@ +from shared import * +import crl, numpy as np, matplotlib.pyplot as plt + +Ts = np.logspace(np.log10(1000), np.log10(10000)) +colors = [] +for T in Ts: + x, y, _ = crl.xyY(crl.BlackBodySpectrum(T)) + colors.append([*crl.sRGB(crl.xyY(x, y, 0.5))]) +colors = np.array(colors) + +plot_setup() +plot_colorbar(Ts, colors) +plt.xlabel("$T~[\\mathrm{K}]$") +plot_export()
\ No newline at end of file |