Skip to content

Toggle Annotations visibility in plot_raw() #8578

Closed

Description

@hoechenberger

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

Activity

  1. cbrnr commented on Nov 29, 2020

    @cbrnr
    Contributor

    I suggested this at some point, but don't know if it was in a separate issue or just buried in some longer discussion. In any case, +💯 for this feature!

  2. agramfort commented on Nov 29, 2020

    @agramfort
    SponsorMember
  3. cbrnr commented on Nov 29, 2020

    @cbrnr
    Contributor

    I'd prefer an option to toggle individual annotations, but maybe another (additional) option could be to hide/minimize only the text.

  4. hoechenberger commented on Nov 29, 2020

    @hoechenberger
    MemberAuthor

    A tooltip won't work well for overlapping annotations though...

  5. hoechenberger commented on Nov 29, 2020

    @hoechenberger
    MemberAuthor

    Oh you meant, an area above the plot where we now have the text? Hm yes this could work

    I still would prefer a toggle though

  6. cbrnr commented on Nov 29, 2020

    @cbrnr
    Contributor

    SigViewer shows a tooltip when hovering over annotations. The tooltip contains all present annotations with their corresponding colors, so this also works.
    Screen Shot 2020-11-29 at 17 31 33

  7. hoechenberger commented on Nov 29, 2020

    @hoechenberger
    MemberAuthor

    @cbrnr Wow, is that an annotation for an individual channel? 😍

  8. cbrnr commented on Nov 29, 2020

    @cbrnr
    Contributor

    Yes, although not all file formats support this.

  9. larsoner commented on Nov 30, 2020

    @larsoner
    Member

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions