[pymvpa] topoplot issue

Emanuele Olivetti emanuele at relativita.com
Fri Mar 29 23:59:05 UTC 2013


Hi Yarik and Michael! :)

Today I was playing with topoplots and I noticed a little issue. The head
and the sensors are not centered on the topography. They appear a bit shifted
towards the top left corner of the picutre. Or, conversely, the topography
appears to be shifted towards the bottom right corner of the head/sensors.
This may be a little annoying when the interesting activity occurs close to
the bottm-right edge of the head, because there the head hides the topography.

I looked into the code at mvpa2/misc/plot/topo.py but I couldn't find the
bug or how to fix it. Could you help me?

Here is the minimal code to reproduce the issue:
----
import numpy as np
import matplotlib.pyplot as plt
from mvpa2.misc.plot.topo import plot_head_topography
chanpos = np.load('chanpos.npy')
plt.figure()
plot_head_topography(np.ones(chanpos.shape[0]), chanpos, plotsensors=True, 
plothead=True)
# plt.show()
----

Please find attached the positions of the 306 channels of our MEG, together with
a screenshot of the issue (i.e. the output of the previous lines).

Best,

Emanuele

PS: I use the latest numpy, scipy, mvpa from your neurodebian repository for
ubuntu 12.04.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: chanpos.npy
Type: application/octet-stream
Size: 7424 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20130330/a74a41bc/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: topoplot_issue.png
Type: image/png
Size: 42848 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20130330/a74a41bc/attachment-0001.png>


More information about the Pkg-ExpPsy-PyMVPA mailing list