Skip to content

Assign a random number of colors between 49-69 to shift color cycle when requesting a new colormap.#331

Merged
cmalinmayor merged 1 commit intomainfrom
327-more-label-colours
Feb 4, 2026
Merged

Assign a random number of colors between 49-69 to shift color cycle when requesting a new colormap.#331
cmalinmayor merged 1 commit intomainfrom
327-more-label-colours

Conversation

@AnniekStok
Copy link
Collaborator

To fix #327

Assign a random number of colors between 49-69 to shift the color cycle, so that labels that were on the same part of the cycle are now separated and get different colors assigned.

Alternatively, we could also increase the number of colors in the cycle, but the problem may still occur (just less frequently) and we get more similar colors, so you might end up with three close shades of green next to each other.

…le, so that labels that we on the same part of the cycle are now separated and get different colors assigned
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.35%. Comparing base (562e35e) to head (494f006).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #331   +/-   ##
=======================================
  Coverage   86.35%   86.35%           
=======================================
  Files          51       51           
  Lines        4244     4244           
=======================================
  Hits         3665     3665           
  Misses        579      579           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@cmalinmayor cmalinmayor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cmalinmayor cmalinmayor merged commit c08c06d into main Feb 4, 2026
19 checks passed
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

Successfully merging this pull request may close these issues.

More label colours

3 participants