3 related questions: formatting heatmap axis/internal numbers in scientific notation or other notation?
See original GitHub issueHow might one format the (a) axis numbers in, say, scientific notation, (b) the numbers in the heatmap cells, and © the width of the cells in the heatmap? The picture attached shows that none of these are optimal (I’d love to get, say, scientific notation with 2 digits after the decimal on the axes; if that can be done in Pandas in some way I can probably do that; the internal cells ought to be integers, I think; and they’re too wide.)
vega-lite had a hacky solution for © at some point that may have been resolved, "config": { "textCellWidth": 28 }
.
Examples of these in the gallery would be great.
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
Seaborn showing scientific notation in heatmap for 3-digit ...
It creates a heat map as shown below. You can see the numbers are not huge (max 750), but it's showing them in...
Read more >All About Heatmaps. The Comprehensive Guide
Heatmaps visualize the data in a 2-dimensional format in the form of colored maps. The color maps use hue, saturation, or luminance to ......
Read more >A Complete Guide to Heatmaps
A heatmap (aka heat map) depicts values for a main variable of interest across two axis variables as a grid of colored squares....
Read more >Scientific display format
Scientific number notation is fully supported by the Scientific category. The following steps demonstrate how to use this display format.
Read more >Heat Map Question
Click Add new question. · Select Heat map. · Add a graphic, either by clicking Choose graphic in the editing pane, or clicking...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Note that in VL 2.0, we will introduce
rect
mark, which will allow you to create a heatmap without text in a more sensible way. (No need to use thetext
mark and set thetext
channel to empty text!) 😃Sorry, I phrased my issue poorly. I am already using rect for my heatmap, and it works wonderfully. I run into a problem when I try to add a text label on top of each square: they become long rectangles and I haven’t been able to “resize” them to be just big enough to contain the text that I am displaying.
I have searched the docs and I haven’t found anything that could point me in the right direction - I thought those properties (
textBandWitdth
andbandSize
) were relevant for this issue I am having. @jakevdp