Skip to content

Commit

Permalink
Implement interim support for "colour.lightness_Fairchild2010" defini…
Browse files Browse the repository at this point in the history
…tion plotting.
  • Loading branch information
KelSolaar committed Jul 11, 2017
1 parent 6321d6f commit a357e28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion TODO.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Colour - TODO
TODO
----

- colour (21 items in 14 files)
- colour (22 items in 15 files)

- appearance (7 items in 5 files)

Expand Down Expand Up @@ -81,6 +81,12 @@ TODO
- (802, 11) # TODO: Consider refactoring implementation.
- (1129, 11) # TODO: Should raise KeyError, need to check the tests.

- plotting (1 item in 1 file)

- colorimetry.py

- (599, 11) # TODO: Handle condition statement with metadata capabilities.

- volume (1 item in 1 file)

- rgb.py
Expand Down
5 changes: 3 additions & 2 deletions colour/plotting/colorimetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,10 @@ def multi_lightness_function_plot(functions=None, **kwargs):
raise KeyError(('"{0}" "Lightness" function not found in factory '
'"Lightness" functions: "{1}".').format(
name, sorted(LIGHTNESS_METHODS.keys())))

# TODO: Handle condition statement with metadata capabilities.
pylab.plot(
samples, [function(x) for x in samples],
samples, (function(samples / 100) if
name.lower() == 'fairchild 2010' else function(samples)),
label='{0}'.format(name),
linewidth=2)

Expand Down

0 comments on commit a357e28

Please sign in to comment.