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.

Add legendgroup for annotations

See original GitHub issue

One common use case I have run into for annotations is in multi-trace plots to have a series of annotations (one per trace) that each describe the same quality in their respective data. For use cases like this, where annotations are associated with specific traces, it would be awesome to be able to give them a legendgroup attribute so that they can be shown/hidden in the exact same situations as the traces they correspond to (turns out it’s hard to replicate Plotly’s native trace show/hide behavior with plotly_legendclick/doubleclick).

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
gohsucommented, Nov 18, 2022

Hi! Any update on this? Would be a really useful feature to have.

0reactions
ryandrew14commented, Mar 31, 2020

Interesting! I have actually never come upon the trace uid – could you point me to some documentation for how I’d discover and link it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linking Plotly Annotations with Multiple Traces
Hello all, I'm currently working with the latest version of plotly in Python. I've run into an issue that I'm hoping there is...
Read more >
python - Annotations (legend text) in a line subplots (time series)
1 Answer 1 · an approach is to add additional Scatter traces that contain the text of the annotation you require · have...
Read more >
How to set up multiple subplots with grouped legends using ...
How to set up multiple subplots with grouped legends using Plotly in Python? ... Scatter(x=data, y=data, legendgroup=str, showlegend=bool).
Read more >
First steps 3: Adding legends, text, and annotations
You will also add additional information to your plot by including annotations. Adding and styling a legend#. Bokeh automatically adds a legend to...
Read more >
A complete introduction to Plotly, from beginner to advanced.
Use of 'legendgroup' attribute in each trace. ... How to add annotations to plots using go.layout.Annotations().
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