issue with cfg.interplimits

Roemer van der Meij r.vandermeij at DONDERS.RU.NL
Mon May 31 10:43:54 CEST 2010


Hi Reyna,

Sorry for my late reply. I added your bug to our new bug-database, you
can track it here if you wish:
http://bugzilla.fcdonders.nl/show_bug.cgi?id=86

I'll try to work out a fix in the following days. It probably doesn't
have anything to do with your specific ft_prepare_layout options. There
has been a reorganization of the plotting-functions several months back,
which may have caused this problem.
Are you by the way using the most recent fieldtrip version?

Best,
Roemer



On 5/21/2010 8:50 PM, Reyna L. Gordon wrote:
> Dear Fieldtrippers,
>
> I am having an issue with creating topoplots of time-frequency data
> acquired on an EGI system and processed in Fieldtrip, and I was
> wondering if anyone could help.
>
> Everything works great (this toolbox has been wonderful to use in
> general!) except that the colors that represent power are not
> interpolating to electrodes that are lower than the origin.
> Unfortunately, using the default option for cfg.projection =
> 'orthographic' for ft_prepare_layout, seems to greatly distort the
> layout for these data, probably because I have too few electrodes. A
> better option for me seems to be cfg.projection = 'polar', and I am
> fine with those few electrodes appearing outside of the head.
>
> However, the data corresponding to those electrodes is not there - I
> suspect that there is a problem at the level of cfg.interplimits.
> This is the code I'm using:
>
> cfg = [];
> cfg.rotate = 0;
> cfg.projection = 'polar';
> newlay=ft_prepare_layout(cfg, bin1);
> cfg = [];
>
> cfg.layout  = newlay;
> cfg.yparam = 'freq';
> cfg.xlim= [0.150 0.150];
> cfg.ylim= [13 30];
> cfg.zlim = [-0.10 0.10];
> cfg.highlight          = 'on';
> cfg.baseline = 'no';
> cfg.commentpos = 'title';
> cfg.shading    = 'interp';
> cfg.interplimits = 'electrodes'; %Should work here?
> cfg.style = 'straight';
> cfg.zparam   = 'powspctrm';
> cfg.fontsize = 12;
> cfg.gridscale = 100;
> ft_topoplotTFR(cfg, bin1);
>
> According to the documentation,  specifying cfg.interplimits =
> 'electrodes' should achieve what I want here, but it still does not
> interpolate the plot outside of the head.
> Attached are some images generated with different cfg.interplimits and
> cfg.projection options. I have tried upgrading to the most recent
> release of FT, but it doesn't change the outcome.
>
> Any and all insight would be greatly appreciated.
> Best,
> Reyna
>
> -----------------------
> Reyna L. Gordon
> PhD Candidate
> Center for Complex Systems & Brain Sciences
> Florida Atlantic University
> gordon at ccs.fau.edu
>
>
>
>
>
>
> ----------------------------------
> 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. See also
> http://listserv.surfnet.nl/archives/fieldtrip.html and
> http://www.ru.nl/neuroimaging/fieldtrip.
>
>
>
>
>
>
>
>
>
>
> ----------------------------------
> 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. See also
> http://listserv.surfnet.nl/archives/fieldtrip.html and
> http://www.ru.nl/neuroimaging/fieldtrip.

--
Roemer van der Meij MSc
Scientific Programmer&  Data-Analyst
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognition
P.O. Box 9104
6500 HE Nijmegen
The Netherlands
Tel: +31(0)24 3612631
E-mail: r.vandermeij at donders.ru.nl

----------------------------------
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. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.



More information about the fieldtrip mailing list