colour-science / colour

Colour Science for Python
https://www.colour-science.org
BSD 3-Clause "New" or "Revised" License
2.14k stars 263 forks source link

[BUG]: `cmfs` argument are not porperly used in `plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931` #1314

Open Globefishp opened 4 days ago

Globefishp commented 4 days ago

Description

In the document, cmfs argument is used to calculate the spectra locus in chromaticity diagram. But I found in plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931 this argument are not used, it always produce a result based on CIE1931-2 deg observer. While plot_chromaticity_diagram_CIE1931, plot_chromaticity_diagram, plot_spectral_locus all works well, I think the cmfs may be not porperly passed.

Code for Reproduction

import colour
from colour.plotting import *

colour.plotting.diagrams.plot_spectral_locus(
    cmfs='CIE 2015 2 Degree Standard Observer'
)
colour.plotting.diagrams.plot_chromaticity_diagram(
    cmfs='CIE 2015 2 Degree Standard Observer'
)
colour.plotting.diagrams.plot_chromaticity_diagram_CIE1931(
    cmfs='CIE 2015 2 Degree Standard Observer'
)
colour.plotting.plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931(
    ['sRGB'],
    cmfs='CIE 2015 2 Degree Standard Observer'
)

Exception Message

No response

Environment Information

No response