Skip to content

Conversation

@ivonastojanovic
Copy link
Contributor

@ivonastojanovicivonastojanovic 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.

imageimage

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

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ivonastojanovic@pablogsal