Hi everyone ,<br><br>I noticed a small bug using ft_topoplotER with my EEG-MEG data that I think I managed to correct. <br><br>When I try to use the option : <br><br><i>cfg.highlight = ' labels '<br></i>or <i><br>cfg.marker = ' labels '</i><br>
<br>I have an error message saying that it doesn't find coordinates for
some labels (see at the end for the entire message). I looked into it
and it seems that EEG channels are always in the list of channels that
the function tries to plot even if I'm trying to plot only
magnetometers for example.<br>
<br>I made two small changes at the ft_topoplotER and it seems to solve the problem : <br><br><i>line 606 > templay.label = data.label(labelindex); <br></i>instead of <br><i>templay.label = </i><i>channelselection(cfg.highlightchannel{icell}, data.label);</i><br>
<br><i>line 631 > templay.label = data.label(labelindex); </i><br>instead of <i><br>templay.label = channelselection(setdiff(1:length(data.label),highlightchansel), data.label);<br><br></i>This solution works fine for me but I'm not sure that it will work in any case.<i><br>
</i><br>Still I hope it helps.<br><br>Cheers, <br><br>Lucie CHARLES<br><br><br><br>Error Message :<br><br><i>??? Error using ==> text<br>Each string specified must have a corresponding set of coordinates<br>
<br>Error in ==> plot_lay at 73<br> text(X+labeloffset, Y+(labeloffset*1.5), Lbl,'fontsize',labelsize);<br><br>Error in ==> ft_topoplotER at 617<br> plot_lay(templay,'box','no','label',labelflg,'point','yes',...<br>
<br>Error in ==> topoplotER at 17<br>[varargout{1:nargout}] = funhandle(varargin{:});</i>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p> http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p> http://www.ru.nl/fcdonders/fieldtrip/</p>