[FieldTrip] Inquiry regarding "cfg.rotate"

Tom Marshall tom.marshall at psy.ox.ac.uk
Tue Aug 1 10:50:44 CEST 2023


Hi Petar,

If you replace ‘-90’ with ‘270’, does that produce the rotation you want?

Just a hunch, based on Robert’s suggestion in https://urldefense.com/v3/__https://github.com/fieldtrip/fieldtrip/issues/1674__;!!HJOPV4FYYWzcc1jazlU!60QKCY0R3GJgesY3D65R61rkvsPCyUDVpHSnavjhWSDCpQ2Vu-BW3lZhV1WPd6hmlTyBG01GQtvtkIb4n2sca54o-uJkN7VJ$ .

Best,
Tom


From: fieldtrip <fieldtrip-bounces at science.ru.nl> on behalf of Petar Atanasov via fieldtrip <fieldtrip at science.ru.nl>
Reply to: FieldTrip discussion list <fieldtrip at science.ru.nl>
Date: Tuesday, 1 August 2023 at 09:19
To: "fieldtrip at science.ru.nl" <fieldtrip at science.ru.nl>
Cc: Petar Atanasov <PAtanasov at uclan.ac.uk>
Subject: [FieldTrip] Inquiry regarding "cfg.rotate"

Good evening,
I am currently analysing some co-registered eye-tracking and electroencephalography fixation-related potential (FRP) data.
I am using MATLAB 2022b but I have also replicated the issue with MATLAB 2020b.
For the pre-processing of the data, I have used EEGLAB 2023.0 as well as the EYE-EEG 0.99 and Unfold.

I have been trying to plot topographies and waveforms via the "ft_multiplotER" and the "ft_topoplotER" functions, such that my frontal electrodes are at the top of the image and the occipital electrodes are at the bottom of the image.
However, when I plot the data both with the default as well as with "-90" or "90" degree rotation via "cfg.rotate", my images always show frontal electrodes on the right and occipital electrodes on the left.

When I plot the channel locations with the same coordinates in EEGLAB I get the images with the correct orientation for all electrodes.

Can you please advice on how I may be able to rotate my images correctly and why is it that "cfg.rotate" may not be working as expected?

I am happy to provide further information as needed.
Thank you in advance for your feedback and assistance with my inquiry.
Kind regards,

Petar Atanasov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20230801/2247eb25/attachment.htm>


More information about the fieldtrip mailing list