<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Hame<div class=""><br class=""></div><div class="">ft_sourceplot is a high-level function that includes interaction with the data (i.e. clicking). Furthermore, depending on method (ortho/surface/montage/glassbrain/cloud) you will get one or mutliple sub-axes within one figure. So it is not suited for use in a loop with multiple axes or subplots.</div><div class=""><br class=""></div><div class="">I know that people are using it to export images to pdf/ps or ai format and then use external software to glue them together. I also find it convenient to save the figures to a bitmap using “print -dpng” and use external software (such as Windows picture viewer) to browse through large numbers of files. I believe this is also mentioned somewhere on <a href="http://www.fieldtriptoolbox.org/tutorial/plotting" class="">http://www.fieldtriptoolbox.org/tutorial/plotting</a></div><div class=""><br class=""></div><div class="">If you want closer control over the figures and different axes within one figure, I recommend you use the lower-level plotting functions that you can find in fieldtrip/plotting. E.g. <a href="http://www.fieldtriptoolbox.org/reference/ft_plot_mesh" class="">ft_plot_mesh</a>, which you can give the mesh and the colors you want on each of the vertices or triangles. See also <a href="http://www.fieldtriptoolbox.org/reference#from_the_plotting_module" class="">http://www.fieldtriptoolbox.org/reference#from_the_plotting_module</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">best regards,</div><div class="">Robert</div><div class=""><br class=""></div><div class="">PS please use the fieldtrip mailing list next time, there are many people on it that can help, and providing answers on the list benefits others as well</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 27 Apr 2018, at 14:20, Hame Park <<a href="mailto:hame.hame.hame@gmail.com" class="">hame.hame.hame@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class="">Dear Robert<div class=""><br class=""></div><div class="">Hello!</div><div class="">I was trying to make a big figure with many</div><div class="">sourceplots, created from ft_sourceplot with the 'surface' method,</div><div class="">but it seems it always creates a separate figure.</div><div class=""><br class=""></div><div class="">I tried something like</div><div class=""><br class=""></div><div class=""><div class="">h = figure;</div><div class="">ha = nan(length(T), 1);</div><div class="">for t=1:length(T)</div><div class="">    ha(t) = subplot(1, length(T), t);</div><div class="">end</div></div><div class=""><br class=""></div><div class="">for t=1:length(T)</div><div class="">    axes(ha(t))</div><div class="">    ft_sourceplot(cfg, data)</div><div class="">end</div><div class=""><br class=""></div><div class="">but it still opens up a new figure for ft_sourceplot.</div><div class="">I tried to look into the code, and tried disabling the line</div><div class="">h=figure; but this gave me errors which I couldn't comprehend.</div><div class=""><br class=""></div><div class="">Any help would be much appreciated!</div><div class=""><br class=""></div><div class="">Thank you.</div><div class="">Best wishes,</div><div class="">Hame</div></div>
</div></blockquote></div><br class=""></div></body></html>