xyzpy.plot.color#

Helper functions for generating color spectrums.

Module Contents#

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.

Attributes#

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.