myimagelib.myImageLib.bestcolor
- myimagelib.myImageLib.bestcolor(n)
A good colormap for categorical data plots. Color Universal Design (CUD) colorblind-safe.
- Parameters:
n (int) – integer from 0 to 9, specifying the index of the color in the list
- Returns:
the hex code of the specified color
- Return type:
str
>>> from myimagelib import bestcolor >>> bestcolor(0)