# ica.plot\_components for EEG?

**URL:** <https://mne.discourse.group/t/ica-plot-components-for-eeg/852>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [October 17, 2014, 3:15pm UTC](https://mne.discourse.group/t/ica-plot-components-for-eeg/852 "2014-10-17T15:15:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [October 17, 2014, 3:15pm UTC](https://mne.discourse.group/t/ica-plot-components-for-eeg/852/1 "2014-10-17T15:15:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [October 17, 2014, 8:17pm UTC](https://mne.discourse.group/t/ica-plot-components-for-eeg/852/2 "2014-10-17T20:17:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [October 18, 2014, 1:03pm UTC](https://mne.discourse.group/t/ica-plot-components-for-eeg/852/3 "2014-10-18T13:03:39Z")

</div>

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.
