xyzpy.plot.color

Helper functions for generating color spectrums.

Attributes

Functions

_COLORS_MATPLOTLIB_TO_BOKEH(cols)

convert_colors_string_to_tuple(cols)

convert_colors(cols, outformat[, informat])

Convert lists of colors between formats

xyz_colormaps([name, reverse])

Custom-defined colormaps

get_default_sequential_cm([engine])

cimple(hue[, sat1, sat2, val1, val2, hue_shift, name, ...])

Creates a color map for a single hue.

cimple_bright(hue[, sat1, sat2, val1, val2, ...])

Creates a color map for a single hue, with bright defaults.

cimluv(hue[, hue_shift, sat1, sat2, val1, val2, N, ...])

Creates a color map for single hue, using HSLuv color space.

oklch_to_oklab(l, c, h)

oklab_to_xyz(l, a, b)

xyz_to_linear_rgb(x, y, z)

linear_rgb_to_srgb(r, g, b)

oklch_to_rgb(l, c, h)

srgb_to_linear_rgb(sr, sg, sb)

linear_rgb_to_xyz(r, g, b)

xyz_to_oklab(x, y, z)

oklab_to_oklch(L, a, b)

rgb_to_oklch(sr, sg, sb)

cmoke(hue[, hue_shift, sat1, sat2, val1, val2, N, reverse])

Creates a color map for single hue, using OKLCH color space.

Module Contents

xyzpy.plot.color._COLORS_MATPLOTLIB_TO_BOKEH(cols)[source]
xyzpy.plot.color._COLOR_CONVERT_METHODS
xyzpy.plot.color.convert_colors_string_to_tuple(cols)[source]
xyzpy.plot.color.convert_colors(cols, outformat, informat='MATPLOTLIB')[source]

Convert lists of colors between formats

xyzpy.plot.color.xyz_colormaps(name=None, reverse=False)[source]

Custom-defined colormaps

xyzpy.plot.color.get_default_sequential_cm(engine='MATPLOTLIB')[source]
xyzpy.plot.color.cimple(hue, sat1=0.4, sat2=1.0, val1=0.95, val2=0.35, hue_shift=0.0, name='cimple', auto_adjust_sat=0.2)[source]

Creates a color map for a single hue.

xyzpy.plot.color.cimple_bright(hue, sat1=0.8, sat2=0.9, val1=0.97, val2=0.3, hue_shift=0.0, name='cimple_bright')[source]

Creates a color map for a single hue, with bright defaults.

xyzpy.plot.color.cimluv(hue, hue_shift=0.0, sat1=1.0, sat2=0.5, val1=0.8, val2=0.3, N=30, reverse=False)[source]

Creates a color map for single hue, using HSLuv color space.

xyzpy.plot.color.oklch_to_oklab(l, c, h)[source]
xyzpy.plot.color.oklab_to_xyz(l, a, b)[source]
xyzpy.plot.color.xyz_to_linear_rgb(x, y, z)[source]
xyzpy.plot.color.linear_rgb_to_srgb(r, g, b)[source]
xyzpy.plot.color.oklch_to_rgb(l, c, h)[source]
xyzpy.plot.color.srgb_to_linear_rgb(sr, sg, sb)[source]
xyzpy.plot.color.linear_rgb_to_xyz(r, g, b)[source]
xyzpy.plot.color.xyz_to_oklab(x, y, z)[source]
xyzpy.plot.color.oklab_to_oklch(L, a, b)[source]
xyzpy.plot.color.rgb_to_oklch(sr, sg, sb)[source]
xyzpy.plot.color.cmoke(hue, hue_shift=0.0, sat1=0.36, sat2=0.5, val1=0.38, val2=0.93, N=51, reverse=False)[source]

Creates a color map for single hue, using OKLCH color space.

xyzpy.plot.color.doublerainbow
xyzpy.plot.color.doublerainbow_r