#Creates a plot layer for each color transfer function (ctf)
ctf_layer(i)=layer(Geom.line,
x=360:830, y=Colors.cie1931_cmf_table[:,i],
color=fill(string('x'+i-1, '̄'), 471), #Generate name of ctf
)
[ctf_layer(i) for i=1:3]
#Plot the X, Y and Z ctfs
plot(Guide.XLabel("λ (nm)"), Guide.YLabel("Sensitivity"),
Guide.colorkey("ctf"),
#color each ctf by wavelength of peak sensitivity
Scale.color_discrete_manual(
map(colormatch, 359.+[indmax(Colors.cie1931_cmf_table[:,i]) for
i=1:3])...), [ctf_layer(i) for i=1:3]...,)
ArgumentError: invalid ASCII sequence
Any help to correct this ?
Best regards
Henri