Skip to content

How to plot the Plankian Locus alongside SDs on CIE chromaticity diagram plots? #1287

Answered by KelSolaar
ThomasWilshaw asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ThomasWilshaw,

Two ways:

import colour

colour.plotting.plot_sds_in_chromaticity_diagram_CIE1931(
    [colour.SDS_ILLUMINANTS["D65"]],
    chromaticity_diagram_callable_CIE1931=lambda **kwargs: colour.plotting.plot_planckian_locus_in_chromaticity_diagram_CIE1931(
        [], **kwargs
    ),
)
figure, axes = colour.plotting.plot_sds_in_chromaticity_diagram_CIE1931(
    [colour.SDS_ILLUMINANTS["D65"]],
    show=False,
)
colour.plotting.temperature.plot_planckian_locus(axes=axes)

Cheers,

Thomas

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ThomasWilshaw
Comment options

@ThomasWilshaw
Comment options

@KelSolaar
Comment options

@ThomasWilshaw
Comment options

Answer selected by ThomasWilshaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants