colorutils
colorutils ¶
Module for all color functions and variables
Classes¶
Color ¶
Bases: tuple
, Enum
Enum for RGB color tuples used for visualization
Functions¶
get_color ¶
get_color_array ¶
Returns an array with colors for each class
Parameters:
-
classes_array
(List
) –List of classes to generate colors for
Returns:
-
ndarray
–Array of one color per class
Source code in niceml/utilities/colorutils.py
get_color_array_uint ¶
returns a color array with shape (len(COLORS),3) with values between 0 and 255
Source code in niceml/utilities/colorutils.py
get_color_uint ¶
returns a color tuple with len 3 for a color between 0 and 255