- MNE version: 1.7.0
- operating system: Windows 10
Both plot_sensors and ica.plot_components work in my code.
However, when i tired set_montage to my own data(Dreamer dataset). It only showed the points of electrode but not outline of head.
Another question is there anyway to change the color of head outline in ica.plot_components?
Below is my fail code. If need more information please let me know. Thank you!
import scipy
import tensorflow
import numpy as np
import matplotlib.pyplot as plt
import mne
sfreq = 128
ch_types = ['eeg', 'eeg', 'eeg', 'eeg' ,'eeg', 'eeg', 'eeg', 'eeg', 'eeg', 'eeg', 'eeg', 'eeg', 'eeg', 'eeg']
ch_names = ['AF3', 'F7', 'F3', 'FC5', 'T7', 'P7', 'O1', 'O2', 'P8', 'T8', 'FC6', 'F4', 'F8', 'AF4']
data_mne = np.transpose(subject_eeg_baseline[0,0][:,:])
biosemi32 = mne.channels.make_standard_montage('biosemi32')
biosemi32.plot(); ### NO HEAD OUTLINE
info_mne = mne.create_info(ch_names=ch_names, sfreq=sfreq, ch_types=ch_types)
info_mne.set_montage(biosemi32)
info_mne.plot_sensors(); ### NO HEAD OUTLINE
raw_mne = mne.io.RawArray(data_mne, info_mne)
raw_mne.plot_sensors(show_names=True, sphere='auto');
notch_mne = raw_mne.notch_filter(50)
bandpass_mne = notch_mne.filter(1, 50)
ica = mne.preprocessing.ICA(max_iter='auto', random_state=97)
ica.fit(bandpass_mne)
ica.plot_components(show_names=True, outlines='head', sphere=(0, 0.025, 0.01, 0.095), colorbar=True); ### COLOR IS WHITE