- MNE version: e.g. 1.8
- operating system: mac M1
I’m just trying to plot the raw_arrays (24 ch, EEG data)
I run the following code at the terminal.
There are no errors, and show up this message.
Using qt as 2D backend.
Using pyopengl with version 3.1.6
It seems to be running well. but any plotting windows are shown.
(I checked that a simple plt.plot() shows properly.)
Is there possible issues that I missed?
Thanks a lot.
My source code is following
import pyxdf
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import mne
from mne import create_info, EvokedArray
from mne.io import RawArray
from mne.preprocessing import ICA
fname = "path/file_name.xdf"
streams, header = pyxdf.load_xdf(fname)
eeg_data = streams[0]["time_series"].T
ch_names_eeg = [ch['label'][0] for ch in streams[0]['info']['desc'][0]['channels'][0]['channel']]
ch_types_eeg = ['eeg'] * len(ch_names_eeg)
info_eeg = create_info(ch_names=ch_names_eeg, sfreq=sr_eeg, ch_types=ch_types_eeg)
raw_eeg = RawArray(eeg_data, info_eeg)
raw_eeg.plot()
plt.show()