mne-tools / mne-tools/mne-python

Add viz.plot_annotations() & Annotations.plot()

Open
#7,720 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the problem

Currently there is no easy way to directly visualize Annotations. I always have to convert them to events first and then use mne.viz.plot_events(), which seems pretty awkward.

Describe your solution

Similarly to mne.viz.plot_events(), there should be mne.viz.plot_annotations() and Annotations.plot(). They would require the user to pass an info structure, and otherwise work similarly to plot_events().

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 mne.viz.plot_events() and the Annotations.plot() entry point to understand the existing visualization API and how an info structure is used. Done means both mne.viz.plot_annotations() and Annotations.plot() are available and behave similarly to plot_events() for visualizing Annotations.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.