Skip to content

ENH Equip mne.viz.plot_evoked_topo with TimeChange event #13928

@Gnefil

Description

@Gnefil

Describe the new feature or enhancement

Currently, mne.viz.plot_evoked_topo function doesn't have TimeChange event attached, which means that while other figures could synchronise the time step in plots, this function can't.

Describe your proposed implementation

Luckily, the magnified plot (single time series line plot) already has a motion detection event which attaches to the cursor swipe. This provides an excellent UI interaction starting point.

Image

On the other hand, the logic of implementing on_time_change and its event, publishing and subscribing, could follow existing examples such as the one from _brain/_brain.py, topomap.py, and evoked_field.py.

Describe possible alternatives

I believe this is straightforward enough to have an obvious way to implement this, referencing existing implementations.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions