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

Cycle through hues when choosing new neuron colors #293

Open
hubbardp opened this issue Oct 25, 2020 · 1 comment
Open

Cycle through hues when choosing new neuron colors #293

hubbardp opened this issue Oct 25, 2020 · 1 comment
Labels
to do To Do

Comments

@hubbardp
Copy link
Collaborator

It is common that I repeat the pattern of submitting a query, choosing a neuron from the result, displaying that neuron, then submitting another query to display another neuron, etc. When I do so, the displayed neurons often have colors that are quite similar (e.g., half have various shades of purple while the other half have various shades of green). It is difficult to distinguish neurons that have such similar colors.

While no algorithm for automatically picking colors will be perfect, it should be possible to do better. For example, if the algorithm simply cycled through the colors of the rainbow (i.e., a red, an orange, a yellow, a green, a blue, an indigo, a violet), then at least I would get highly distinguishable colors for seven neurons.

This idea amounts to cycling through the hue part of a hue-saturation-value (HSV) color representation, where hue can be thought of as degrees on a circle. A concern is what happens when wrapping around on the circle of hues. One idea is to choose the increment used between hues so the wrapping is somewhat offset. Another idea is to start adjusting saturation or value when wrapping around.

@neomorphic neomorphic transferred this issue from connectome-neuprint/neuPrint Oct 29, 2020
@issuelabeler issuelabeler bot added the to do To Do label Oct 29, 2020
@neomorphic
Copy link
Collaborator

The algorithm does cycle through the hue part of the hsl color space. Ultimately this suggests that it is not doing a very good job at picking a random value, if green and purple are picked more frequently than other colors.

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

No branches or pull requests

2 participants