[FieldTrip] topoplot - no match between data and layout

Azeez Adebimpe ayobimpe2004 at hotmail.com
Sun Oct 26 10:32:58 CET 2014


Hello,If the number of  channels of  your data and layout are not the same, there will be error. The alphabetical case is very important, like sometime your data label may be FCZ while the layout is FCz, you need to check that. Meanwhile, to avoid any error, the best option is to design your own layout base on your data as explained in detail in this tutorial http://fieldtrip.fcdonders.nl/tutorial/layoutGood luck!

Azeez A. Adebimpe


"Knowledge and good manner, the beauty of a man"

From: e.caspar at ucl.ac.uk
To: fieldtrip at science.ru.nl
Date: Sun, 26 Oct 2014 08:34:11 +0000
Subject: [FieldTrip] topoplot - no match between data and layout






Dear Fieldtripers, 



I am trying to represent my data on a topoplotER.  I have averaged all my data with the label "GAshortwm":




GAshortwm = ft_timelockgrandaverage(cfg, avgs{:}); 





cfg = [];                           
cfg.xlim = [-2 1];                
cfg.zlim = [-10 10];                
cfg.layout = 
'biosemi64.lay'; 
ft_topoplotER(cfg,GAshortwm); colorbar;




However, I have a recurrent mistake which is  only present with this type of plot, not with other plots like single plot:




Error using topoplot_common (line 561)
labels in data and labels in layout do not match



Error in ft_topoplotER (line 169)
cfg = topoplot_common(cfg, varargin{:});




I'm sure of the layout I'm using (biosemi 64), and I already checked that this layout is detected within my script. Consequently, I don't understand why there is no match between my data and the layout. I though it was because name of the labels are from
 1 to 66 in data files, but it's probably not the reason because it works very well with single plot.



Does anyone have an idea?



Thank you!



Emilie












_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20141026/e1f04bea/attachment.html>


More information about the fieldtrip mailing list