xyzpy.plot.color ================ .. py:module:: xyzpy.plot.color .. autoapi-nested-parse:: Helper functions for generating color spectrums. Attributes ---------- .. autoapisummary:: xyzpy.plot.color._COLOR_CONVERT_METHODS xyzpy.plot.color.doublerainbow xyzpy.plot.color.doublerainbow_r Functions --------- .. autoapisummary:: xyzpy.plot.color._COLORS_MATPLOTLIB_TO_BOKEH xyzpy.plot.color.convert_colors_string_to_tuple xyzpy.plot.color.convert_colors xyzpy.plot.color.xyz_colormaps xyzpy.plot.color.get_default_sequential_cm xyzpy.plot.color.cimple xyzpy.plot.color.cimple_bright xyzpy.plot.color.cimluv xyzpy.plot.color.oklch_to_oklab xyzpy.plot.color.oklab_to_xyz xyzpy.plot.color.xyz_to_linear_rgb xyzpy.plot.color.linear_rgb_to_srgb xyzpy.plot.color.oklch_to_rgb xyzpy.plot.color.srgb_to_linear_rgb xyzpy.plot.color.linear_rgb_to_xyz xyzpy.plot.color.xyz_to_oklab xyzpy.plot.color.oklab_to_oklch xyzpy.plot.color.rgb_to_oklch xyzpy.plot.color.cmoke Module Contents --------------- .. py:function:: _COLORS_MATPLOTLIB_TO_BOKEH(cols) .. py:data:: _COLOR_CONVERT_METHODS .. py:function:: convert_colors_string_to_tuple(cols) .. py:function:: convert_colors(cols, outformat, informat='MATPLOTLIB') Convert lists of colors between formats .. py:function:: xyz_colormaps(name=None, reverse=False) Custom-defined colormaps .. py:function:: get_default_sequential_cm(engine='MATPLOTLIB') .. py:function:: 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) Creates a color map for a single hue. .. py:function:: cimple_bright(hue, sat1=0.8, sat2=0.9, val1=0.97, val2=0.3, hue_shift=0.0, name='cimple_bright') Creates a color map for a single hue, with bright defaults. .. py:function:: cimluv(hue, hue_shift=0.0, sat1=1.0, sat2=0.5, val1=0.8, val2=0.3, N=30, reverse=False) Creates a color map for single hue, using HSLuv color space. .. py:function:: oklch_to_oklab(l, c, h) .. py:function:: oklab_to_xyz(l, a, b) .. py:function:: xyz_to_linear_rgb(x, y, z) .. py:function:: linear_rgb_to_srgb(r, g, b) .. py:function:: oklch_to_rgb(l, c, h) .. py:function:: srgb_to_linear_rgb(sr, sg, sb) .. py:function:: linear_rgb_to_xyz(r, g, b) .. py:function:: xyz_to_oklab(x, y, z) .. py:function:: oklab_to_oklch(L, a, b) .. py:function:: rgb_to_oklch(sr, sg, sb) .. py:function:: cmoke(hue, hue_shift=0.0, sat1=0.36, sat2=0.5, val1=0.38, val2=0.93, N=51, reverse=False) Creates a color map for single hue, using OKLCH color space. .. py:data:: doublerainbow .. py:data:: doublerainbow_r