[FieldTrip] multi plot and layout

Emilie Caspar ecaspar at ulb.ac.be
Mon Jan 5 22:00:27 CET 2015


Dear Robert, 

Thank you for your answer. Indeed, biosemi electrodes have two labels, the "official" name, and a specific name related to their system. 
If I relabel my electrodes, the layout will certainly works.

Best regards, 

Emilie

On 5 janv. 2015, at 17:55, Robert Oostenveld <r.oostenveld at donders.ru.nl> wrote:

> Hi Emilie
> 
> ft_rejectvisual with method=channel does not make use of the layout, so that is not a suitable comparison. 
> 
> Can you do 
> 
> cfg = [];
> cfg.layout = 'biosemi64.lay';
> layout = ft_prepare_layout(cfg) 
> 
> and compare layout.label with the labels in the data? Or you can also simply open the biosemi64.lay file in a text editor.
> 
> best regards,
> Robert
> 
> 
> On 02 Jan 2015, at 11:23, Emilie Caspar <ecaspar at ulb.ac.be> wrote:
> 
>> Dear Fieldtrippers, 
>> 
>> It's probably a very simple question but I don't understand the problem.
>> 
>> I would like to use multi plot and topoplot for my data.
>> So I wrote:
>> 
>> cfg  = [];
>> cfg.xlim = [-0.1 0.4];
>> cfg.ylim = [-10 13];
>> cfg.layout = 'biosemi64.lay';
>> figure;
>> ft_multiplotER(cfg, avgRobotC_ToneC, avgRobotC_ToneI, avgRobotI_ToneC, avgRobotI_ToneI);
>> 
>> 
>> However, the mistake indicates that labels in data and labels in layout do not match. However, I'm sure of the layout I'm using and in addition, when I'm using the ft_rejectvisual (in the same script) with the following line codes, it works very well:
>> 
>> cfg             = [];
>>         cfg.alim        = 100;
>>         cfg.keepchannel = 'yes';
>>         cfg.layout      = 'biosemi64.lay';
>>         cfg.method      = 'channel'; %% Or 'trial'
>>         cfg.metric      = 'var';
>>         clean_data    = ft_rejectvisual(cfg, epData); 
>> …...
>> 
>> So I clearly don't understand why multi plot and topoplot do not accept this layout, while the layout is accepted for another function in the same script on the same data.  Singleplot works very well.
>> 
>> Have you any idea?
>> 
>> Thanks!
>> 
>> Emilie
>> 
>> _______________________________________________
>> fieldtrip mailing list
>> fieldtrip at donders.ru.nl
>> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> 
> _______________________________________________
> 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/20150105/2366fbe3/attachment-0002.html>


More information about the fieldtrip mailing list