question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Annotated heatmaps: font colour blends with the colour of the square.

See original GitHub issue

When using the default color scheme, the font color contrasts normally with the fill of the each heatmap square. But if you try other standard color schemes with reversescale=True, when values are close to zero, the colors will merge. I think this is the wrong default behavior.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rozierguillaumecommented, Oct 9, 2020

I have the same problem! here

0reactions
PlatonBcommented, Jan 31, 2020

Hello, @jonmmease! Bug can be reproduced when using zmin and zmax arguments. Plotly 4.5.0.

from random import triangular
import plotly.figure_factory as ff

z = [[round(triangular(0.01, 0.1), 3) for j in range(10)] for i in range(10)]
ff.create_annotated_heatmap(z, colorscale='greens').show()
ff.create_annotated_heatmap(z, colorscale='greens', zmin=0, zmax=1).show()

Without zmin and zmax: without_zmin_zmax

With zmin=0 and zmax=1: with_zmin_zmax

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 3 Heatmap Annotations | ComplexHeatmap ...
Heatmap annotations are important components of a heatmap that it shows additional information that associates with rows or columns in the ...
Read more >
Creating annotated heatmaps — Matplotlib 3.6.2 documentation
The following examples show how to create a heatmap with annotations. ... What we need is a 2D list or array which defines...
Read more >
All About Heatmaps - Towards Data Science
HeatMaps is about replacing numbers with colors because the human brain understands visuals better than numbers, text, or any written data.
Read more >
labeledHeatmap: Produce a labeled heatmap plot in WGCNA
Produce a labeled heatmap plot. Description. Plots a heatmap plot with color legend, row and column annotation, and optional text within th heatmap....
Read more >
A Guide To Highlight Tables and Heatmaps - Tableau
When and How to Use Highlight Tables for Visual Analysis. Use a highlight table to indicate salient values on a text table using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found