Skip to content

Conversation

@ivonastojanovic
Copy link
Contributor

@ivonastojanovic ivonastojanovic commented Dec 3, 2025

Previously, colors were generated in HeatmapCollector based on intensity, and the same colors were used for both light and dark themes. As a result, the displayed colors didn’t always match the color legend for the selected theme.

To fix this, we now compute only the intensity for both self and total samples in HeatmapCollector. The actual color is chosen later based on that intensity and the active theme, ensuring the lines correctly follow the theme-specific color legend.

image image

Previously, colors were generated in HeatmapCollector based on
intensity, and the same colors were used for both light and dark
themes. As a result, the displayed colors didn’t always match the
color legend for the selected theme.

To fix this, we now compute only the intensity for both self and
total samples in HeatmapCollector. The actual color is chosen later
based on that intensity and the active theme, ensuring the lines
correctly follow the theme-specific color legend.
The _color_cache itself is no longer needed because colors are no
longer generated in HeatmapCollector.
@pablogsal
Copy link
Member

I have refactored things a bit to clean some duplication but other than that LGTM

@pablogsal pablogsal enabled auto-merge (squash) December 6, 2025 19:57
@pablogsal pablogsal merged commit c91c373 into python:main Dec 6, 2025
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants