Skip to content

How to implement MNE-Realtime with MNEQt-Browser or mne.io.plot() ? #39

@vsltech

Description

@vsltech
import os.path as op
import subprocess
import mne
from mne.viz import plot_events
from mne.utils import running_subprocess
from mne_realtime import FieldTripClient, RtEpochs

info = mne.io.read_info('<myEEGFileInEDFFormat')
event_id, tmin, tmax = 1, -0.2, 0.5

with FieldTripClient(host='localhost', port=1972,tmax=40, wait_max=5, info=info) as rt_client:
    rt_epochs = RtEpochs(rt_client, event_id, tmin, tmax, proj=None)
    rt_epochs.start()
    for ev in rt_epochs.iter_evoked():
        epoch_data = ev.data
        #mne.io.raw.plot(show=True,block=True,show_options=False,theme='dark',title=None,proj=False)
        print(epoch_data)

    rt_epochs.stop()

I don't want to plot using matplotlib, any snippet on plot using PyQtGraph(MNEQtBrowser) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions