<div dir="ltr"><div dir="ltr">Hi Patrick,<div><br><div>I couldn't resist to try your example and on my Windows 10 computer, MATLAB 2019b, current FT version, your problem replicates.</div><div>All seems well with ft_topoplot_TFR (also interactive mode) and ft_singleplot_TFR, but ft_multiplotTFR behaves strangely indeed (attached).</div></div><div><br></div><div>Cheers,</div><div>Stephen</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op wo 4 nov. 2020 om 17:27 schreef Patrick Wiegel <<a href="mailto:patrick.wiegel@sport.uni-freiburg.de">patrick.wiegel@sport.uni-freiburg.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="overflow-wrap: break-word;">
<font face="Menlo">Hi Jan-Mathijs,</font>
<div><font face="Menlo"><br>
</font></div>
<div><font face="Menlo">I uploaded the code and the data to (<span style="background-color:rgb(255,255,255)"><a href="https://github.com/PatrickWiegel/MultiplotTFR_plotting.git" style="color:rgb(36,41,46)" target="_blank">https://github.com/PatrickWiegel/MultiplotTFR_plotting.git</a><font color="#24292e"><span>). </span></font></span></font></div>
<div><br>
</div>
<div><span style="background-color:rgb(255,255,255)"><font color="#24292e" face="Menlo"><span>It would be interesting to see whether you experience the same problem with my data. </span></font></span></div>
<div><span style="background-color:rgb(255,255,255)"><font color="#24292e" face="Menlo"><span><br>
</span></font></span></div>
<div><span style="background-color:rgb(255,255,255)"><font color="#24292e" face="Menlo"><span>Best wishes,</span></font></span></div>
<div><span style="background-color:rgb(255,255,255)"><font color="#24292e" face="Menlo"><span>Patrick</span></font></span></div>
<div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace"><span style="background-color:rgb(255,255,255)"><br>
</span></font></div>
<div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace"><span style="background-color:rgb(255,255,255)"><br>
</span></font></div>
<div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace"><span style="background-color:rgb(255,255,255)"><br>
</span></font>
<div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<b>Patrick Wiegel</b><br>
<font color="#680823">Department of Sport and Sport Science</font>
<div><br>
University of Freiburg <br>
Sandfangweg 4<br>
79117 Freiburg i. Br . <br>
<br>
<div>phone: +49 (0)761/ 203-4550<br>
<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" target="_blank">email: patrick.wiegel@sport.uni-freiburg.de</a><br>
web: <a href="http://www.sport.uni-freiburg.de" target="_blank">www.sport.uni-freiburg.de</a></div>
</div>
</div>
</div>
<div><br>
<blockquote type="cite">
<div>Am 04.11.2020 um 16:27 schrieb Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank">jan.schoffelen@donders.ru.nl</a>>:</div>
<br>
<div>
<div style="overflow-wrap: break-word;">
Hi Patrick, 
<div><br>
<div>The only thing that can be done, is to try and reproduce the issue using your specific data. If this data is not too big, you can send it (off list), or even better: file an issue on github + a link to get the data, so that we (i.e. one of the
 FT developers) can have a look.</div>
<div><br>
</div>
<div>Best wishes,</div>
<div>Jan-Mathijs</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On 4 Nov 2020, at 15:11, Patrick Wiegel <<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" target="_blank">patrick.wiegel@sport.uni-freiburg.de</a>> wrote:</div>
<br>
<div>
<div style="overflow-wrap: break-word;">
Hi Jan-Mathijs,
<div><br>
</div>
<div>thanks for the fast response. I don’t have any other matlab figures opened. I had a look in the history of the function but was not able to identify the problem. </div>
<div><br>
</div>
<div>However, if it working for you, then it is probably something related to my script/setup.</div>
<div><br>
</div>
<div>Best, Patrick</div>
<div><br>
<div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<b>Patrick Wiegel</b><br>
<font color="#680823">Department of Sport and Sport Science</font>
<div><br>
University of Freiburg <br>
Sandfangweg 4<br>
79117 Freiburg i. Br . <br>
<br>
<div>phone: +49 (0)761/ 203-4550<br>
<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" target="_blank">email: patrick.wiegel@sport.uni-freiburg.de</a><br>
web: <a href="http://www.sport.uni-freiburg.de/" target="_blank">www.sport.uni-freiburg.de</a></div>
</div>
</div>
</div>
<div><br>
<blockquote type="cite">
<div>Am 04.11.2020 um 14:45 schrieb Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank">jan.schoffelen@donders.ru.nl</a>>:</div>
<br>
<div>
<div style="overflow-wrap: break-word;">
Hi Patrick,
<div><br>
</div>
<div>It works fine for me, so I cannot reproduce your issue. Have you tried closing all open figures in MATLAB before calling ft_multiplotTFR?</div>
<div><br>
</div>
<div><br>
</div>
<div>Since this is the second e-mail today that explicitly mentions a ‘break’ in functionality, let me seize the opportunity to point to the possibility that users can already play a little bit more detective than just mentioning ‘it worked in version
 X and not anymore in version Y’. If you go to the github repository <a href="https://github.com/fieldtrip/fieldtrip" target="_blank">
https://github.com/fieldtrip/fieldtrip</a> you can actually check the changes to the code in more detail, by investigating the ‘history’ of the function. This already could give you a headstart in describing the problem, and would give people inclined to look
 into this with you some handles to work with.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Best wishes,</div>
<div><br>
</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On 4 Nov 2020, at 14:21, Patrick Wiegel <<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" target="_blank">patrick.wiegel@sport.uni-freiburg.de</a>> wrote:</div>
<br>
<div>
<div style="overflow-wrap: break-word;">
Dear community,
<div><br>
</div>
<div>I am trying to use the function ft_multiplotTFR for time-frequency data generated by ft_frequanalyses (wavelet method) using the following code:</div>
<div><br>
<div>
<div>
<div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier">
cfg = [];</div>
<div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier;color:rgb(160,32,240)">
<span>cfg.layout = </span>'biosemi64.lay'<span>;</span></div>
<div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier">
cfg.parameter = <span style="color:rgb(160,32,240)">'powspctrm'</span>;</div>
<div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier">
cfg.xlim = [0 0.9];</div>
<div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier">
ft_multiplotTFR(cfg, tfr_grandavg)</div>
</div>
<div><br>
</div>
<div>The result of the multiplot function is a single TF plot (see attachment) rather than 64 single channel TF plots arranged in the specified layout. It might be a bug in the newer fieldtrip versions (fieldtrip-20201103) since the plot is correctly
 generated using older versions (e.g. fieldtrip-20200508). It would be great if anyone could test the function. </div>
<div><br>
</div>
<div>Best, Patrick</div>
<div><br>
</div>
<div><span id="gmail-m_-448459865864671599cid:C5316CEC-9B39-490E-B0F1-1BC8A2388A8D@w2k.sport.uni-freiburg.de"><multiplotTFR.jpg></span><br>
<div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<b>Patrick Wiegel</b><br>
<font color="#680823">Department of Sport and Sport Science</font>
<div><br>
University of Freiburg <br>
Sandfangweg 4<br>
79117 Freiburg i. Br . <br>
<br>
<div>phone: +49 (0)761/ 203-4550<br>
<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" target="_blank">email: patrick.wiegel@sport.uni-freiburg.de</a><br>
web: <a href="http://www.sport.uni-freiburg.de/" target="_blank">www.sport.uni-freiburg.de</a></div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>

_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div></div>