[FieldTrip] Component plotting in figure of choice
Schoffelen, J.M. (Jan Mathijs)
jan.schoffelen at donders.ru.nl
Sat Mar 27 16:40:05 CET 2021
Hi Sander,
I think that this change (i.e. intended improvement of the overall codebase in terms of consistency and expected functionality) https://github.com/fieldtrip/fieldtrip/issues/1721 refers to what you are experiencing.
I think that you may need to specify the cfg.figure option appropriately. If I read the code well, and if it’s your intention to plot just a single component, ft_topoplotIC will switch to topoplot_common, which handles the opening of new figures using the fieldtrip/private/open_figure.m
Depending on what your needs are, you can specify cfg.figure to be ‘yes’, ’no’, or ‘gcf’.
Le dùrachdan,
Jan-Mathijs
On 27 Mar 2021, at 12:48, Sander van Bree (PGR) <2603901V at student.gla.ac.uk<mailto:2603901V at student.gla.ac.uk>> wrote:
Dear FieldTrip users,
There’s been a recent change to plotting independent components using ft_topoplotIC, which plots components in a new figure. How can I force ft_topoplotIC to plot my component in my figure and/or subplot of choice? For example:
f1 = figure;
subplot(2,1,1);
hold on;
cfg = [];
cfg.component = 1;
cfg.layout = layout;
ft_topoplotIC(cfg, comp);
This used to work – what’s the best way of getting this done now?
Best wishes,
Sander van Bree
_______________________________________________
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/20210327/8c429f62/attachment.htm>
More information about the fieldtrip
mailing list