<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 Songhee,
<div class=""><br class="">
</div>
<div class="">According to the latest version of the code on: <a href="https://github.com/fieldtrip/fieldtrip/blob/master/ft_multiplotER.m" class="">https://github.com/fieldtrip/fieldtrip/blob/master/ft_multiplotER.m</a> there is no functional option cfg.showlegend
 in ft_multiplotER, neither is it mentioned in the function’s help. If you desire such functionality, please feel free to come up with a suggestion to change the code in a Pull Request. You can check the corresponding code in ft_singleplotER for inspiration.
 Note, however, that it may require some thought as to where to put the ‘legend’. I can imagine that it makes sense to show it in an ft_singleplotER, since this function produces just a single image on the screen, but I am not sure whether one would like to
 have a legend displayed in each of the N small subplots that are produced by ft_multiplotER. Not only because it leads to a large amount of redundant visual info, it’s probably also not readable to begin with.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 24 May 2022, at 00:23, Songhee Kim via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
Hi FieldTrippers, </div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
<br class="">
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
How can I show legend (for experiment conditions) when plotting using ft_multiplotER or ft_singleplotER? </div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
<br class="">
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
For example, the figure generated by the following codes doesn't show a legend. </div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
cfg = [];<br class="">
cfg.channel = 'all';<br class="">
cfg.xlim    = [0 1];<br class="">
cfg.layout  = lay;<br class="">
cfg.showlegend   = 'yes';<br class="">
figure;<br class="">
ft_multiplotER(cfg, ga_container.E, ga_container.A);<br class="">
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
<br class="">
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
<br class="">
</div>
<div class=""><br class="">
</div>
-- <br class="">
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div style="font-size: 12.8px;" class=""><font color="#676767" class=""><b class="">Songhee Kim, PhD</b><br class="">
</font></div>
<div style="font-size:12.8px" class=""><font color="#676767" class="">Postdoctoral Fellow</font></div>
<div style="font-size:12.8px" class=""><font color="#676767" class="">Department of Neurology</font></div>
<div style="font-size: 12.8px;" class="">Medical College of Wisconsin</div>
<div style="font-size: 12.8px;" class=""></div>
</div>
</div>
</div>
</div>
</div>
</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://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!-cTUfd3ZaZgDsljA_ZQ1DgJOvKcdsr8XqrjVXffDBXOHFYZ8YdtKVBS7_bjZIsgTp3O-DXpXhkffxI7UV4gtaN_Ph0qXLNroSLs9DA$
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>