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.

3 related questions: formatting heatmap axis/internal numbers in scientific notation or other notation?

See original GitHub issue

How 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.

do_ab_indochina-2004

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
kanitwcommented, Nov 30, 2016

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 the text mark and set the text channel to empty text!) 😃

0reactions
LukeMathWalkercommented, Jan 10, 2019

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 and bandSize) were relevant for this issue I am having. @jakevdp

Read more comments on GitHub >

github_iconTop 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 >

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