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 when using zmin and zmax

See original GitHub issue

Since there’s no reaction to the new message in #1300, I’ll write it as a separate issue.

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bensdmcommented, Nov 12, 2020

I have submitted a PR, (this is my first one), not sure why the build doc requirement failed https://github.com/plotly/plotly.py/pull/2892

1reaction
nicolaskruchtencommented, Nov 11, 2020

No update, we’d be happy to accept a PR for it if it’s easy 😃

The RdBu inclusion in sequential was a mistake, as noted in the docs you linked:

image

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 >
Correlation Heatmap in Plotly - python - Stack Overflow
Seaborn colormap that I was create, I want to create something similar in Plotly. How can I do that? You can use of...
Read more >
How does a heatmap's font_colors attribute work? - Dash Python
I created the following heatmap: I want the font color of the green cells to be white, and the red+yellow cells to be...
Read more >
Heatmap colors - miocittadino.it
Here are heat maps using yellow and red for colors for the brain study. ... while numerical data requires a colour scale that...
Read more >
Help Online - LabTalk Programming - Layer.CMap - OriginLab
Set color levels. method is Null (Not specified): Use the prepared color map settings, like zmin, zmax, etc., and the Original colormap level...
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