Defines the colorimetry plotting objects:
Returns the colour matching functions with given name.
Parameters: | cmfs (unicode) – Colour matching functions name. |
---|---|
Returns: | Colour matching functions. |
Return type: | RGB_ColourMatchingFunctions or XYZ_ColourMatchingFunctions |
Raises: | KeyError – If the given colour matching functions is not found in the factory colour matching functions. |
Returns the illuminant with given name.
Parameters: | illuminant (unicode) – Illuminant name. |
---|---|
Returns: | Illuminant. |
Return type: | SpectralPowerDistribution |
Raises: | KeyError – If the given illuminant is not found in the factory illuminants. |
Plots given spectral power distribution.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> from colour import SpectralPowerDistribution
>>> data = {400: 0.0641, 420: 0.0645, 440: 0.0562}
>>> spd = SpectralPowerDistribution('Custom', data)
>>> single_spd_plot(spd)
True
Plots given spectral power distributions.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> from colour import SpectralPowerDistribution
>>> data1 = {400: 0.0641, 420: 0.0645, 440: 0.0562}
>>> data2 = {400: 0.134, 420: 0.789, 440: 1.289}
>>> spd1 = SpectralPowerDistribution('Custom1', data1)
>>> spd2 = SpectralPowerDistribution('Custom2', data2)
>>> multi_spd_plot([spd1, spd2])
True
Plots given colour matching functions.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> single_cmfs_plot()
True
Plots given colour matching functions.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> cmfs = [
... 'CIE 1931 2 Degree Standard Observer',
... 'CIE 1964 10 Degree Standard Observer']
>>> multi_cmfs_plot(cmfs)
True
Plots given single illuminant relative spectral power distribution.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> single_illuminant_relative_spd_plot()
True
Plots given illuminants relative spectral power distributions.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> multi_illuminants_relative_spd_plot(['A', 'B', 'C'])
True
Plots the visible colours spectrum using given standard observer CIE XYZ colour matching functions.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> visible_spectrum_plot()
True
Plots given Lightness function.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> single_lightness_function_plot()
True
Plots given Lightness functions.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Raises: | KeyError – If one of the given Lightness function is not found in the factory Lightness functions. |
Examples
>>> fs = ('CIE 1976', 'Wyszecki 1963')
>>> multi_lightness_function_plot(fs)
True
Plots given blackbody spectral radiance.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> blackbody_spectral_radiance_plot()
True
Plots blackbody colours.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> blackbody_colours_plot()
True