colour.plotting.plot_multi_sds#

colour.plotting.plot_multi_sds(sds: Union[Sequence[Union[colour.colorimetry.spectrum.SpectralDistribution, colour.colorimetry.spectrum.MultiSpectralDistributions]], colour.colorimetry.spectrum.MultiSpectralDistributions], plot_kwargs: Optional[Union[Dict, List[Dict]]] = None, **kwargs: Any) Tuple[matplotlib.figure.Figure, matplotlib.axes._axes.Axes][source]#

Plot given spectral distributions.

Parameters
Returns

Current figure and axes.

Return type

tuple

Examples

>>> from colour import SpectralDistribution
>>> 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
... }
>>> sd_1 = SpectralDistribution(data_1, name='Custom 1')
>>> sd_2 = SpectralDistribution(data_2, name='Custom 2')
>>> plot_kwargs = [
...     {'use_sd_colours': True},
...     {'use_sd_colours': True, 'linestyle': 'dashed'},
... ]
>>> plot_multi_sds([sd_1, sd_2], plot_kwargs=plot_kwargs)
... 
(<Figure size ... with 1 Axes>, <...AxesSubplot...>)
plot_multi_sds