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.

Toggle Annotations visibility in plot_raw()

See original GitHub issue

If working with heavily-annotated data, it can become very difficult to tell overlapping Annotations apart, and their descriptions may overlap too – see e.g. this example based on the sample data:

I’m now intending to add EOG, ECG, and artifact Annotations to this dataset, but I’m already struggling to keep track of what’s going on 🧐 Of course I could shrink the displayed time span, but this may not always be a feasible approach.

I wondered if we could offer an option to toggle visibility for each annotation individually? When in Annotations mode, we already display a window with radio buttons to select which Annotation(s) to add / modify. Could we maybe simply add checkboxes – probably left of the radio buttons – to toggle visibility?

cc @drammock

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
cbrnrcommented, Nov 29, 2020

Yes, although not all file formats support this.

1reaction
larsonercommented, Nov 30, 2020

A tooltip doesn’t seem too bad from a picker standpoint I guess. But the overlap is still going to be a problem in that case.

A checkbox in the annotations window to disable at least the labeling, maybe also the annotation itself (maybe two check boxes then?) would be a good first step. @drammock up to you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Toggling annotation on and off in matplotlib - Stack Overflow
I managed to figure out how to change the visibility of the plots themselves, however, I am struggling to do the same for...
Read more >
Shortcut for Toggle annotation visibility - Community @ ShotGrid
Hi Arun! You can add a hotkey to toggle annotation visibility by adding the following line to your annotate_mode.mu file.
Read more >
mne.viz.plot_raw — MNE 1.2.2 documentation - MNE-Python
This provides a means of interactively observing how each projector would affect the raw data if it were applied. Annotation mode is toggled...
Read more >
Annotation visibility toggle by clicking trace on legend
The annotations have a visible property that can be accessed, and I read about the layout.legend.itemclick but it only covers the events of...
Read more >
Toggle Annotation Browser nets visibility - Custom IC SKILL
Is there a way to find the annotation browser name to toggle with a bindkey the nets visibility?
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