David, <div><br></div><div>i had the same issue with my own layout. The position of my electrodes was not fitting the head, even if the proportion were right, like in your first image.</div><div>I solved this problem by multiplying the position with different numbers until i found the perfect one.</div>
<div><br></div><div>This is the part of code that does this:</div><div><br></div><div>lay = ft_prepare_layout(cfg);</div><div>lay.pos(:,1) = 1.5*lay.pos(:,1);</div><div><br></div><div>Replace 1.5 by something that works for you.</div>
<div><br></div><div>Hope this helps, </div><div><br></div><div>Rodolphe.<br><br><div class="gmail_quote">On Fri, Jan 14, 2011 at 3:36 PM, David Groppe <span dir="ltr"><<a href="mailto:dgroppe@cogsci.ucsd.edu">dgroppe@cogsci.ucsd.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Fieldtripians,<br>
I'm trying to export some EEGLAB data to Fieldtrip and am having<br>
trouble plotting the data topographically. I constructed a layout file<br>
for my 31 electrodes (see attached) and tried to plot the topography<br>
of my data using ft_topoplotER.m. This produced the attached figures<br>
all_chans.jpg and just_scalp_chans.jpg. The topography should look<br>
like that in the attached image, eeglab_topo.jpg. As you can see, the<br>
electrodes are shrunk too far into the head and can be off center.<br>
Trying to change the channel layout file to fix this has little effect<br>
because ft_prepare_layout.m automatically normalizes the electrode<br>
coordinates to fill a unit circle. Given the topoplots in the<br>
fieldtrip tutorial, there's obviously a way around this problem but<br>
save for editing the ft_prepare_layout.m, I don't know what to do.<br>
thanks in advance for your help,<br>
-David<br>
<font color="#888888"><br>
--<br>
David Groppe, Ph.D.<br>
<a href="mailto:dgroppe@cogsci.ucsd.edu">dgroppe@cogsci.ucsd.edu</a><br>
<a href="http://www.cogsci.ucsd.edu/~dgroppe/" target="_blank">http://www.cogsci.ucsd.edu/~dgroppe/</a><br>
</font><br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>