Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interactive controls to plot_evoked_topo #11892

Open
wmvanvliet opened this issue Aug 17, 2023 · 2 comments
Open

Add interactive controls to plot_evoked_topo #11892

wmvanvliet opened this issue Aug 17, 2023 · 2 comments
Assignees
Labels

Comments

@wmvanvliet
Copy link
Contributor

wmvanvliet commented Aug 17, 2023

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

@wmvanvliet wmvanvliet added the ENH label Aug 17, 2023
@wmvanvliet wmvanvliet self-assigned this Aug 17, 2023
@larsoner
Copy link
Member

Yes I think plot_evoked_topomap interactivity and options should also exist and be reused for plot_topo, and vice-versa (to the extent possible for the two plot types)

@larsoner
Copy link
Member

... or added to both (where possible) in the case that they're missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants