Mne-python: ENH: Add pop-up key mapping for PyVista stc.plot

Created on 30 Jan 2020  路  7Comments  路  Source: mne-tools/mne-python

@GuillaumeFavelier maybe this already exists: is there a way to move continuously through time on an stc, by holding for instance the left/right arrow key? The playback speed scaler sets the step-size on the time-axis, but I still need to move the mouse across the time scale, which is a bit inconvenient, and hard to do continuously.

Most helpful comment

>

What is the shortcut to bring up a legend / help ?

it does not exist yet :) to be consistent with other plots it should be 'h'

All 7 comments

did you try pressing space bar?

>

I did not (what a narrow concept of time). Cool!
What is the shortcut to bring up a legend / help ?

>

What is the shortcut to bring up a legend / help ?

it does not exist yet :) to be consistent with other plots it should be 'h'

That would be nice to have considering the number of toggles/shortcuts has increased in TimeViewer. I noted this idea in #7162 :+1:

This window that pops up can just be a new / separate matplotlib figure like we do in all of our other plotters. @GuillaumeFavelier it might be worth refactoring the code to make a new function that takes a list of (shortcut, description) pairs and pops up a new window with the list.

If we plan to reuse MplCanvas, this requires https://github.com/mne-tools/mne-python/pull/7247 to be merged

I wouldn't reuse MplCanvas, I would actually pop up a window for this one. So you can just do a new plt.figure

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasmainak picture jasmainak  路  3Comments

DanielvdC picture DanielvdC  路  6Comments

timonmerk picture timonmerk  路  5Comments

annesodub picture annesodub  路  3Comments

kingjr picture kingjr  路  3Comments