colour.plotting.multi_spd_plot

colour.plotting.multi_spd_plot(spds, cmfs='CIE 1931 2 Degree Standard Observer', use_spds_colours=False, normalise_spds_colours=False, **kwargs)[source]

Plots given spectral power distributions.

Parameters:
  • spds (list) – Spectral power distributions to plot.
  • cmfs (unicode, optional) – Standard observer colour matching functions used for spectrum creation.
  • use_spds_colours (bool, optional) – Whether to use spectral power distributions colours.
  • normalise_spds_colours (bool) – Whether to normalise spectral power distributions colours.
Other Parameters:
 

**kwargs (dict, optional) – {colour.plotting.render()}, Please refer to the documentation of the previously listed definition.

Returns:

Current figure or None.

Return type:

Figure

Examples

>>> from colour import SpectralPowerDistribution
>>> data_1 = {
...     500: 0.004900,
...     510: 0.009300,
...     520: 0.063270,
...     530: 0.165500,
...     540: 0.290400,
...     550: 0.433450,
...     560: 0.594500
... }
>>> data_2 = {
...     500: 0.323000,
...     510: 0.503000,
...     520: 0.710000,
...     530: 0.862000,
...     540: 0.954000,
...     550: 0.994950,
...     560: 0.995000
... }
>>> spd1 = SpectralPowerDistribution(data_1, name='Custom 1')
>>> spd2 = SpectralPowerDistribution(data_2, name='Custom 2')
>>> multi_spd_plot([spd1, spd2])