1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
from shared import *
import crl, crl.tables as tab
import matplotlib.pyplot as plt
plot_setup(width=0.7)
fig, axes = plt.subplots(2, sharex=True, sharey=False, gridspec_kw={'hspace': 0})
for i, name in enumerate(["l", "m", "s"]):
axes[0].plot(tab.cmf_lms[:, 0], tab.cmf_lms[:, 1 + i], \
["r", "g", "b"][i], \
label=("$\\overline{%s}(\\lambda)$" % name))
for i, name in enumerate(["x", "y", "z"]):
axes[1].plot(tab.cmf[:, 0], tab.cmf[:, 1 + i], \
["r", "g", "b"][i], \
label=("$\\overline{%s}(\\lambda)$" % name))
for i, name in enumerate(["x", "y", "z"]):
axes[1].plot(tab.cmf_1964[:, 0], tab.cmf_1964[:, 1 + i], \
["r:", "g:", "b:"][i], \
label=("$\\overline{%s}_{10}(\\lambda)$" % name))
for ax in axes:
plot_grid(ax)
ax.label_outer()
ax.set_xlim([380, 780])
axes[0].legend()
axes[1].legend(fontsize="small")
axes[1].set_xlabel("$\lambda$ [nm]")
plot_export()
|