colour.plotting.lines_spectral_locus#

colour.plotting.lines_spectral_locus(cmfs: MultiSpectralDistributions | str | Sequence[MultiSpectralDistributions | str] = 'CIE 1931 2 Degree Standard Observer', labels: Sequence | None = None, method: Literal['CIE 1931', 'CIE 1960 UCS', 'CIE 1976 UCS'] | str = 'CIE 1931') Tuple[ndarray[Any, dtype[_ScalarType_co]], ndarray[Any, dtype[_ScalarType_co]]][source]#

Return the Spectral Locus line vertices, i.e., positions, normals and colours, according to given method.

Parameters:
Returns:

Tuple of Spectral Locus vertices and wavelength labels vertices.

Return type:

tuple

Examples

>>> lines = lines_spectral_locus()
>>> len(lines)
2
>>> lines[0].dtype
dtype([('position', '<f8', (2,)), ('normal', '<f8', (2,)), ('colour', '<f8', (3,))])
>>> lines[1].dtype
dtype([('position', '<f8', (2,)), ('normal', '<f8', (2,)), ('colour', '<f8', (3,))])