[FieldTrip] Problem with Multiplot_TFR

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Mon Jun 3 16:55:34 CEST 2019


Hi Elene,

This is not possible from the label field alone. If anything, you also need a specification of corresponding positions (either in 3D space, or as a 2D projection).
Please refer to http://www.fieldtriptoolbox.org/tutorial/layout/ for more information. If there is, as I suspect in your case, a mismatch between the exact label names, and the names of the labels in one of the existing layout files (e.g. biosemi128.lay), you can consider making your local copy of that file, and adjust the names of the labels according to your needs (e.g. change ‘Fp1' into 'Fp 1’ or so).

Good luck,

Jan-Mathijs



On 1 Jun 2019, at 10:35, Elene Beitia Loinaz <elene.beitia at alumni.mondragon.edu<mailto:elene.beitia at alumni.mondragon.edu>> wrote:

Hi,

And is there some way of creating a layout from the *.label field?

Thank you in advance

Elene.

Hau idatzi du Schoffelen, J.M. (Jan Mathijs) (jan.schoffelen at donders.ru.nl<mailto:jan.schoffelen at donders.ru.nl>) erabiltzaileak (2019 mai. 30, og. (11:49)):
Hi Elene,

Please check the names of the electrode labels in the layout file, and compare them with the ones in your *.label field.
Only the exactly matching tokens will be shown in the figure.

Jan-Mathijs

> On 30 May 2019, at 10:35, Elene Beitia Loinaz <elene.beitia at alumni.mondragon.edu<mailto:elene.beitia at alumni.mondragon.edu>> wrote:
>
> Hi Fieldtripers,
>
> I want to plot all the channels powerspectrum using ft_multiplotTFR.
>
> I have the next configuration in the ft_freq analiysis:
>
>                       cfg              = [];
>                       cfg.continuous   = 'yes';
>                       cfg.output       = 'pow';
>                       cfg.method       = 'mtmconvol';
>                       cfg.taper        = 'hanning';
>                       cfg.toi          = [0:0.0039063:1];%[0: 0.0039063 : 479.9961];
>                       cfg.foi          = 8:12;
>                       cfg.t_ftimwin    = ones(length(cfg.foi),1)./10;
>                       cfg.feedback     = 'no';
>                       cfg.hassampleinfo= 'yes';
>
>                      data_Fourier_TFR1 = ft_freqanalysis(cfg, data);
>
> and this is the  data_Fourier_TFR1  structure that I obtained:
>                        label: {128×1 cell}
>                        dimord: 'chan_freq_time'
>                        freq: [8 9 10 11 12]
>                        time: [1×256 double]
>                        powspctrm: [128×5×256 double]
>                       elec: [1×1 struct]
>                       cfg: [1×1 struct]
>
> I yse the next configuration in multiplot_TFR:
>                       cfg = [];
>                       cfg.parameter = 'powspctrm';
>                       cfg.layout = 'bioSemi128.lay';
>                       cfg.zlim = [-20 20];
>                       cfg.colorbar='yes';
>                       cfg.baselinetype = 'absolute';
>
>                       ft_multiplotTFR(cfg, data_Fourier_TFR1)
>
> It does not give me any error but I do not obtained to plot all the channels. The image that I obtained is the following one:
>
> <image.png>
>
> Does someone how to solve this?
> Thanks,
>
> Elene.
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202


_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190603/6d63efeb/attachment-0002.html>
-------------- next part --------------
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202


More information about the fieldtrip mailing list