mne-tools / mne-tools/mne-python

Allow direct creation of short annotations in interactive plots

Open
#9,133 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BUG sprint-2023 VIZ
Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Description

Describe the new feature or enhancement

At the moment, when annotating interactively on a raw.plot(), any annotation created by click and dragging disappears and is not saved on release if it is shorter than ~ 100 ms.
However, once created, annotations can be reduced to a shorter duration.

For some applications (e.g. manually marking peaks, adding events), it could be useful to be able to directly create short or single-sample annotations in one step/single-click.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the interactive annotation handling used by raw.plot() and reproduce the behavior with a click-and-drag shorter than about 100 ms. The change is done when a short or single-sample annotation can be created directly and remains saved on release, while existing annotation editing continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.