Closed hminle closed 4 years ago
Definitely seems like a bug on the string, as the following works:
colour.plotting.plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931(colourspaces=colour.models.ADOBE_RGB_1998_COLOURSPACE)
Hi @hminle,
It is because the mapping is filtered with a Regex pattern: https://github.com/colour-science/colour/blob/b9ebce4be127aea9a282696dc5ac7e162c68c5c4/colour/plotting/common.py#L687
So you would need to escape the parenthesis.
That being said we could improve the docs a bit here!
colour.models.ADOBE_RGB_1998_COLOURSPACE
Thanks, this way works for me It's quite weird though
colour.plotting.plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931(
colourspaces=['ProPhoto RGB', 'Display P3', colour.models.ADOBE_RGB_1998_COLOURSPACE, 'sRGB'],
standalone=False, title=None, colour_cycle_map=cm)
Yeah this is supported so that you can both filter existing RGB Colourspaces while passing a custom one you have just built!
I do it here for example with the Venice colourspaces: https://colab.research.google.com/drive/1ZGTij7jT8eZRMPUkyWlv_x5ix5Q5twMB
Yeah this is supported so that you can both filter existing RGB Colourspaces while passing a custom one you have just built!
I do it here for example with the Venice colourspaces: https://colab.research.google.com/drive/1ZGTij7jT8eZRMPUkyWlv_x5ix5Q5twMB
Thanks, Just curious. In your Venice experiment, I see its colour gamut goes outside visible range a lot. So what's the point to make such a colour space like that?
It not that the colourspace is designed to have such primaries in the first place, it is more a direct consequence of fitting the camera data to the CIE 1931 2 Degree Standard Observer: if you compute the by-product primaries from the 3x3 matrix mapping the former to the latter, you might get some that goes way beyond the spectral locus. This is actually quite typical from cameras because they are not really colorimetric.
Hi,
I cannot draw Adobe RGB 1998 gamut using this command:
For other colour spaces, it's normal, but not this one. Why is that?
Thanks