summaryrefslogtreecommitdiff
path: root/src/pasek_cct.py
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-02-16 11:14:09 +0100
committerPaweł Redman <pawel.redman@gmail.com>2020-02-16 11:18:55 +0100
commit87eb67408f9230315494a8cf66fe264196a04ad0 (patch)
tree63ee9d8b92b7cffaa38d83b4222ffd1e391eb75b /src/pasek_cct.py
Ostateczna wersja pracy dyplomowejHEADmaster
Diffstat (limited to 'src/pasek_cct.py')
-rw-r--r--src/pasek_cct.py14
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