multi_spd_plot(
    [
        colour.PHOTOPIC_LEFS["CIE 2008 2 Degree Physiologically Relevant LEF"],
        colour.SCOTOPIC_LEFS["CIE 1951 Scotopic Standard Observer"],
    ],
    title="Photopic & Scotopic Luminous Efficiency Functions",
    y_label="Luminous Efficiency",
    legend_location="upper right",
    y_tighten=True,
    margins=[0, 0, 0, 0.1],
)

print("\n")

message_box(("Plotting a mesopic luminous efficiency function with given " "photopic luminance value:\n" "\n\t0.2"))
mesopic_luminous_efficiency_function = colour.mesopic_luminous_efficiency_function(0.2)

multi_spd_plot(
    [
        mesopic_luminous_efficiency_function,
        colour.PHOTOPIC_LEFS["CIE 1924 Photopic Standard Observer"],
        colour.SCOTOPIC_LEFS["CIE 1951 Scotopic Standard Observer"],
    ],
    y_label="Luminous Efficiency",
    legend_location="upper right",
    y_tighten=True,
    margins=[0, 0, 0, 0.1],
)

print("\n")
Esempio n. 2
0
multi_spd_plot(
    (colour.PHOTOPIC_LEFS['CIE 2008 2 Degree Physiologically Relevant LEF'],
     colour.SCOTOPIC_LEFS['CIE 1951 Scotopic Standard Observer']),
    title='Photopic & Scotopic Luminous Efficiency Functions',
    y_label='Luminous Efficiency',
    legend_location='upper right',
    y_tighten=True,
    margins=(0, 0, 0, .1))

print('\n')

message_box(('Plotting a mesopic luminous efficiency function with given '
             'photopic luminance value:\n'
             '\n\t0.2'))
mesopic_luminous_efficiency_function = (
    colour.mesopic_luminous_efficiency_function(0.2))

multi_spd_plot((mesopic_luminous_efficiency_function,
                colour.PHOTOPIC_LEFS['CIE 1924 Photopic Standard Observer'],
                colour.SCOTOPIC_LEFS['CIE 1951 Scotopic Standard Observer']),
               y_label='Luminous Efficiency',
               legend_location='upper right',
               y_tighten=True,
               margins=(0, 0, 0, .1))

print('\n')

message_box('Plotting a single "Lightness" function.')
single_lightness_function_plot('CIE 1976')

print('\n')
Esempio n. 3
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Showcases luminous efficiency functions computations.
"""

from __future__ import division, unicode_literals

from pprint import pprint

import colour
from colour.utilities.verbose import message_box

message_box('Luminous Efficiency Functions Computations')

message_box('Luminous efficiency functions dataset.')
pprint(sorted(colour.LEFS))

print('\n')

message_box(('Computing the mesopic luminous efficiency function for factor:\n'
             '\n\t0.2'))
print(colour.mesopic_luminous_efficiency_function(0.2).values)
Esempio n. 4
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Showcases luminous efficiency functions computations.
"""

from __future__ import division, unicode_literals

from pprint import pprint

import colour
from colour.utilities.verbose import message_box

message_box("Luminous Efficiency Functions Computations")

message_box("Luminous efficiency functions dataset.")
pprint(sorted(colour.LEFS))

print("\n")

message_box(("Computing the mesopic luminous efficiency function for factor:\n" "\n\t0.2"))
print(colour.mesopic_luminous_efficiency_function(0.2).values)