Skip to content

Can we plot triangle in CIE 1931 with custom points #1093

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

You must be logged in to vote

Hi @nitishn23,

Yes this is easy:

import colour

RGB_COLOURSPACE_CUSTOM = colour.RGB_Colourspace(
    "Custom",
    [[0.690, 0.310], [0.170, 0.720], [0.150, 0.030]],
    colour.CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"]["D65"],
)

colour.plotting.plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931(
    RGB_COLOURSPACE_CUSTOM, plot_kwargs={"color": "y"}
)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@nitishn23
Comment options

@KelSolaar
Comment options

@nitishn23
Comment options

@KelSolaar
Comment options

@nitishn23
Comment options

Answer selected by nitishn23
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