<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="">
Hi Jan Mathijs,
<div class=""><br class="">
</div>
<div class="">thanks for the quick fix and your response. And good that it was „only“ the missing hold on command. Then it also makes sense that only one TFR survived in the end.</div>
<div class=""><br class="">
</div>
<div class="">All the best, </div>
<div class="">Patrick</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<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; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<b class="">Patrick Wiegel</b><br class="">
<font color="#680823" class="">Department of Sport and Sport Science</font>
<div class=""><br class="">
University of Freiburg <br class="">
Sandfangweg 4<br class="">
79117 Freiburg i. Br . <br class="">
<br class="">
<div class="">phone: +49 (0)761/ 203-4550<br class="">
<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" class="">email: patrick.wiegel@sport.uni-freiburg.de</a><br class="">
web: www.sport.uni-freiburg.de</div>
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">Am 09.11.2020 um 11:48 schrieb Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>>:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<font size="4" class="">Hi Patrick,</font>
<div class=""><font size="4" class=""><br class="">
</font></div>
<div class=""><font size="4" class="">Thanks for reporting the issue! Indeed, it was a genuine ‘bug’ in the code, which caused the multiplot to be wrong. Long story short, when introducing some changes to the code, which were intended to make the set of functions
 that do data visualization in FT a bit more internally consistent, the ‘hold on’ commands disappeared from the multiplot functions by accident. This causes the individual channel TFRs (which are plotted one after the other) to replace each other in the figure,
 rather than to be placed within the same figure. Interestingly, that you identified this only now, because this code change was done a while ago.</font></div>
<div class=""><font size="4" class=""><br class="">
</font></div>
<div class=""><font size="4" class="">We have now fixed it in the master branch of the FieldTrip repository. Once the most recent changes to the codebase survive our battery of test functions, the fix will be available in the release version very soon. Stay
 tuned, and thanks again for reporting.</font></div>
<div class=""><font size="4" class=""><br class="">
</font></div>
<div class=""><font size="4" class="">Best wishes,</font></div>
<div class=""><font size="4" class="">Jan-Mathijs</font></div>
<div class=""><font size="4" class=""><br class="">
</font></div>
<div class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 5 Nov 2020, at 09:01, Stephen Whitmarsh <<a href="mailto:stephen.whitmarsh@gmail.com" class="">stephen.whitmarsh@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">Hi Patrick,
<div class=""><br class="">
<div class="">I couldn't resist to try your example and on my Windows 10 computer, MATLAB 2019b, current FT version, your problem replicates.</div>
<div class="">All seems well with ft_topoplot_TFR (also interactive mode) and ft_singleplot_TFR, but ft_multiplotTFR behaves strangely indeed (attached).</div>
</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">Stephen</div>
</div>
<br class="">
<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" class="">patrick.wiegel@sport.uni-freiburg.de</a>>:<br class="">
</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;" class=""><font face="Menlo" class="">Hi Jan-Mathijs,</font>
<div class=""><font face="Menlo" class=""><br class="">
</font></div>
<div class=""><font face="Menlo" class="">I uploaded the code and the data to (<span style="background-color:rgb(255,255,255)" class=""><a href="https://github.com/PatrickWiegel/MultiplotTFR_plotting.git" style="color:rgb(36,41,46)" target="_blank" class="">https://github.com/PatrickWiegel/MultiplotTFR_plotting.git</a><font color="#24292e" class=""><span class="">). </span></font></span></font></div>
<div class=""><br class="">
</div>
<div class=""><span style="background-color:rgb(255,255,255)" class=""><font color="#24292e" face="Menlo" class=""><span class="">It would be interesting to see whether you experience the same problem with my data. </span></font></span></div>
<div class=""><span style="background-color:rgb(255,255,255)" class=""><font color="#24292e" face="Menlo" class=""><span class=""><br class="">
</span></font></span></div>
<div class=""><span style="background-color:rgb(255,255,255)" class=""><font color="#24292e" face="Menlo" class=""><span class="">Best wishes,</span></font></span></div>
<div class=""><span style="background-color:rgb(255,255,255)" class=""><font color="#24292e" face="Menlo" class=""><span class="">Patrick</span></font></span></div>
<div class=""><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" class=""><span style="background-color:rgb(255,255,255)" class=""><br class="">
</span></font></div>
<div class=""><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" class=""><span style="background-color:rgb(255,255,255)" class=""><br class="">
</span></font></div>
<div class=""><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" class=""><span style="background-color:rgb(255,255,255)" class=""><br class="">
</span></font>
<div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
<b class="">Patrick Wiegel</b><br class="">
<font color="#680823" class="">Department of Sport and Sport Science</font>
<div class=""><br class="">
University of Freiburg <br class="">
Sandfangweg 4<br class="">
79117 Freiburg i. Br . <br class="">
<br class="">
<div class="">phone: +49 (0)761/ 203-4550<br class="">
<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" target="_blank" class="">email: patrick.wiegel@sport.uni-freiburg.de</a><br class="">
web: <a href="http://www.sport.uni-freiburg.de/" target="_blank" class="">www.sport.uni-freiburg.de</a></div>
</div>
</div>
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">Am 04.11.2020 um 16:27 schrieb Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank" class="">jan.schoffelen@donders.ru.nl</a>>:</div>
<br class="">
<div class="">
<div style="overflow-wrap: break-word;" class="">Hi Patrick, 
<div class=""><br class="">
<div class="">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 class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 4 Nov 2020, at 15:11, Patrick Wiegel <<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" target="_blank" class="">patrick.wiegel@sport.uni-freiburg.de</a>> wrote:</div>
<br class="">
<div class="">
<div style="overflow-wrap: break-word;" class="">Hi Jan-Mathijs,
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">However, if it working for you, then it is probably something related to my script/setup.</div>
<div class=""><br class="">
</div>
<div class="">Best, Patrick</div>
<div class=""><br class="">
<div class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<b class="">Patrick Wiegel</b><br class="">
<font color="#680823" class="">Department of Sport and Sport Science</font>
<div class=""><br class="">
University of Freiburg <br class="">
Sandfangweg 4<br class="">
79117 Freiburg i. Br . <br class="">
<br class="">
<div class="">phone: +49 (0)761/ 203-4550<br class="">
<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" target="_blank" class="">email: patrick.wiegel@sport.uni-freiburg.de</a><br class="">
web: <a href="http://www.sport.uni-freiburg.de/" target="_blank" class="">www.sport.uni-freiburg.de</a></div>
</div>
</div>
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">Am 04.11.2020 um 14:45 schrieb Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank" class="">jan.schoffelen@donders.ru.nl</a>>:</div>
<br class="">
<div class="">
<div style="overflow-wrap: break-word;" class="">Hi Patrick,
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">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" class="">
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 class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class=""><br class="">
</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 4 Nov 2020, at 14:21, Patrick Wiegel <<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" target="_blank" class="">patrick.wiegel@sport.uni-freiburg.de</a>> wrote:</div>
<br class="">
<div class="">
<div style="overflow-wrap: break-word;" class="">Dear community,
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
<div class="">
<div class="">
<div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier" class="">
cfg = [];</div>
<div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier;color:rgb(160,32,240)" class="">
<span class="">cfg.layout = </span>'biosemi64.lay'<span class="">;</span></div>
<div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier" class="">
cfg.parameter = <span style="color:rgb(160,32,240)" class="">'powspctrm'</span>;</div>
<div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier" class="">
cfg.xlim = [0 0.9];</div>
<div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier" class="">
ft_multiplotTFR(cfg, tfr_grandavg)</div>
</div>
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">Best, Patrick</div>
<div class=""><br class="">
</div>
<div class=""><span id="gmail-m_-448459865864671599cid:C5316CEC-9B39-490E-B0F1-1BC8A2388A8D@w2k.sport.uni-freiburg.de" class=""><multiplotTFR.jpg></span><br class="">
<div class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<b class="">Patrick Wiegel</b><br class="">
<font color="#680823" class="">Department of Sport and Sport Science</font>
<div class=""><br class="">
University of Freiburg <br class="">
Sandfangweg 4<br class="">
79117 Freiburg i. Br . <br class="">
<br class="">
<div class="">phone: +49 (0)761/ 203-4550<br class="">
<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" target="_blank" class="">email: patrick.wiegel@sport.uni-freiburg.de</a><br class="">
web: <a href="http://www.sport.uni-freiburg.de/" target="_blank" class="">www.sport.uni-freiburg.de</a></div>
</div>
</div>
</div>
<br class="">
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</blockquote>
</div>
</div>
<span id="cid:f_kh4jhb0v1" class=""><singleplot.jpg></span><span id="cid:f_kh4jhb060" class=""><multiplot.jpg></span>_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>