Skip to content

Commit 7236f5e

Browse files
committed
Merge pull request #40 from kthyng/master
Changed lightness to be plotted with CAM02-UCS colorspace instead of CIELAB
2 parents a52f192 + a6404f6 commit 7236f5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmocean/plots.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def plot_gallery(saveplot=False):
105105
rgb = cmap(x)[np.newaxis, :, :3]
106106

107107
# Find a good conversion to grayscale
108-
jch = cspace_converter("sRGB1", "JCh")(rgb)
108+
jch = cspace_converter("sRGB1", "CAM02-UCS")(rgb) # Not sure why to use JCh instead so using this.
109+
# jch = cspace_converter("sRGB1", "JCh")(rgb)
109110
L = jch[0, :, 0]
110111
# # Get colormap in CIE LAB. We want the L here.
111112
# lab = color.rgb2lab(rgb)

0 commit comments

Comments
 (0)