About
Commonly available qualitative colormaps have no more than 20 colours, but for some applications it is useful to have many more colours that are clearly different from one another. distinctipy can generate lists of colours of any length, with each new colour added to the list being as visually distinct from the pre-existing colours in the list as possible. It can also be customised to take into account different types of colourblindness, as well as providing utility functions such as to select an appropriate font colour for any background colour.
GitHub
Check out our repo on GitHub. We welcome questions and contributions of any kind.
References
distinctipy was heavily influenced and inspired by several web sources and stack overflow answers. In particular:
Random generation of distinct colours: Andrew Dewes on GitHub
Colour distance metric: Thiadmer Riemersma at CompuPhase
Best text colour for background: Mark Ransom on Stack Overflow
Colourblindness Filters: Matthew Wickline and the Human-Computer Interaction Resource Network (web archive)
Citing distinctipy
If you would like to cite distinctipy, please refer to the upload of the package on Zenodo.