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.

texttemplate for heatmaps & histogram2d traces

See original GitHub issue

For a heatmap, it is not very easy to do annotations that simply show text for each grid. (One has to specify x, xref, y, yref, ....

Can we borrow the idea from scatter, by introducing a mode parameter that allows to display text as well as marker/line?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mafarcommented, Aug 9, 2019

i translated create_annotated_heatmap python plotly.py to js here as standalone. https://github.com/plotly/plotly.js/issues/4116 i hope it gets integrated.

1reaction
colinfangcommented, Nov 7, 2016

Then I have to make nrows scatter traces, which seems worse than the existing annotations.

If we are allowed to use mode = 'text', to print z values for heatmap can be as simple as

Heatmap(z=z, text=z, mode='text') 
Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript Figure Reference: histogram2d Traces - Plotly
A histogram2d trace is an object with the key "type" equal to "histogram2d" (i.e. {"type": "histogram2d"} ) and any of the keys listed...
Read more >
Chart::Plotly::Trace::Histogram2d - MetaCPAN
Specifies the binning function used for this histogram trace. If *count*, the histogram values are computed by counting the number of values lying...
Read more >
plotly.graph_objs - Anvil Docs
texttemplate - Template string used for rendering the information text that ... bingroup - Set a group of histogram traces which will have...
Read more >
plotly.graph_objects.Histogram2dContour - Plotly Help Center
histfunc – Specifies the binning function used for this histogram trace. ... texttemplate – For this trace it only has an effect if...
Read more >
Plotly Tutorial 2021 - YouTube
New Data Science / Machine Learning Video Everyday at 1 PM EST!!! [ Click Notification Bell ]This video provides complete coverage of Plotly ......
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