Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve color palette to avoid using similar colors for different clusters #49

Open
valearna opened this issue Aug 26, 2021 · 0 comments

Comments

@valearna
Copy link
Collaborator

As suggested by @chris-grove, we should find a better color palette to avoid using similar colors for different words or clusters. As I was mentioning at today's meeting, we are already using a package specifically designed for generating distinct colors (https://www.npmjs.com/package/distinct-colors) for word trends, but it doesn't really work as expected. One possible solution would be to handpick a list of orthogonal colors and always use this list without shuffling the colors every time. This would also provide stable results in terms of color scheme and could help users identify the results quickly.

valearna added a commit that referenced this issue Aug 27, 2021
- using a color palette that maximizes difference between colors: http://godsnotwheregodsnot.blogspot.com/2013/11/kmeans-color-quantization-seeding.html
- colors are not picked randomly, but they are taken always in the same order

#49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant