From 87eb67408f9230315494a8cf66fe264196a04ad0 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 16 Feb 2020 11:14:09 +0100 Subject: Ostateczna wersja pracy dyplomowej --- src/pasek_cct.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/pasek_cct.py (limited to 'src/pasek_cct.py') 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 -- cgit