ica.plot_components for EEG?

Dear MNE users,

Has anyone used the plotting function "ica.plot_components" for EEG? I'm getting the error "array must not contain infs or NaNs" when trying to plot the spatial sensitivities of my ICA components , and suspect that the function is missing the EEG electrode positions/names, to be potentially specified under "layout". Does anyone know a quick way of how to solve this issue?

Nadja

hi Nadja,

ICA should work with EEG. I suspect a numerical issue.

if nothing seems fishy with your data please share a tiny failing
script with data.

Alex

Indeed, it should work. I've recently been running ICA on roughly 200 EEG datasets without any issues. Try to use ch_type='eeg' when calling the plot function, maybe this fixes your problem.