mne-tools / mne-tools/mne-python

Add interactive controls to `plot_evoked_topo`

Open
#11,892 2 comments 0 reactions 1 assignee View on GitHub

@wmvanvliet is already working on this.

Since Aug 17, 2023.

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

Description

Describe the new feature or enhancement

After a frustrating meeting with the professor and a PhD student where we wanted to take a look a the evoked responses from our pilot data, here's a request:

Could we please make plot_evoked_topo more interactive in the following ways:

  • Buttons / hotkeys for increasing/decreasing ylim
  • Buttons / hotkeys for selecting only mags, grads, joining grads
  • Legend present inside the new plots that open when you click on a channel

And a bug:

The default ylims for grads and mags are a bit off. The grads are too small.

Describe your proposed implementation

Added event handlers to the matplotlib figure generated by plot_evoked_topo.

Describe possible alternatives

change and re-run your code very time you want to change any of the above.

Additional context

No response

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.