# mne-python Plot SSP projections issue

**URL:** <https://mne.discourse.group/t/mne-python-plot-ssp-projections-issue/616>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [September 30, 2013, 1:04pm UTC](https://mne.discourse.group/t/mne-python-plot-ssp-projections-issue/616 "2013-09-30T13:04:22Z")\
**Posts on this page:** 4\
**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:** [September 30, 2013, 1:04pm UTC](https://mne.discourse.group/t/mne-python-plot-ssp-projections-issue/616/1 "2013-09-30T13:04:22Z")

</div>

Hi,

I am trying to plot some ecg SSP projections, but I'm not sure what i need  
to do to pull it off.

the error I'm getting from mne.viz.plot\_projs\_topomap(projs,  
layout=layouts) is

Cannot find a proper layout for projection planar-999--0.080-0.080-PCA-01

I'm making the layout with mne.layouts.read\_layout('Vectorview-all'). I  
think the problem is that the channel names in the layout have a space  
where as the channel names in my projectors do not?  
Is there a fix?

Thanks  
Luke  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20130930/c74f7132/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20130930/c74f7132/attachment.html)

---

<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:** [September 30, 2013, 1:10pm UTC](https://mne.discourse.group/t/mne-python-plot-ssp-projections-issue/616/2 "2013-09-30T13:10:27Z")

</div>

Thanks for reporting Luke,

> I think the problem is that the channel names in the layout have a space

where as the channel names in my projectors do not?

Yes, this will be it, probably we missed considering this viz function  
during a recent patch addressing this issue mentioned. I will look into it  
now.

Cheers,  
Denis

---

<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:** [September 30, 2013, 1:31pm UTC](https://mne.discourse.group/t/mne-python-plot-ssp-projections-issue/616/3 "2013-09-30T13:31:04Z")

</div>

Hi Luke I issued a pull request which should fix your issue:

[https://github.com/mne-tools/mne-python/pull/782](https://github.com/mne-tools/mne-python/pull/782)

I think it's good to go, but we can wait for your feedback before merging.

Best,  
Denis

---

<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:** [September 30, 2013, 2:35pm UTC](https://mne.discourse.group/t/mne-python-plot-ssp-projections-issue/616/4 "2013-09-30T14:35:38Z")

</div>

Hi Luke,

meanwhile the fix has been merged and is available on the current dev  
master branch; simply type:

$ git clone git://github.com/mne-tools/mne-python.git

and run python setup.py install from the repository or link the mne  
directory in your site-packages like:

$ ln -s /mypath/mne-python/mne /my-site-packages-path/site-packages/mne

This has the advantage that you don't need to install each time you pull an  
update.

Tip: if you want to know where your site-packages are located run the  
following line from the command line:

$ python -c 'import site; print site.getsitepackages()'

In case you face any problem don't hesitate to report.

Best,  
Denis
