<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 Steve and all,
<div class=""><br class="">
</div>
<div class="">Sorry, I didn’t think this through well enough: it could be that your fieldtrip version is ’too old’. Could you upgrade to something much more recent and first check whether your problem persists?</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 20 Mar 2020, at 09:08, Stephen Politzer-Ahles <<a href="mailto:politzerahless@gmail.com" class="">politzerahless@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Hi all,</div>
<div class=""><br class="">
</div>
<div class="">I am trying to plot two ERPs in ft_multiplotER with different line styles. According to the documentation, I should be able to feed a cell array of styles into cfg.linestyle. But when I do that, it seems to only use the last style in the cell
 array. Here's an example of the code I'm using:</div>
<div class=""><br class="">
</div>
<div class="">figure;</div>
<div class="">cfg = [];</div>
<div class="">cfg.parameter = 'avg';</div>
<div class="">cfg.layout = lay;</div>
<div class="">cfg.showlabels= 'yes';</div>
<div class="">cfg.linestyle = {'-' '--'};</div>
<div class="">cfg.channel = {'EEG' '-M1' '-M2'};</div>
<div class="">ft_multiplotER( cfg, MMNsonly.ka3, MMNsonly.pa3 );</div>
<div class=""><br class="">
</div>
<div class="">I expected that this should make one of the ERPs be a solid line and one a dashed line, but it made both of them dashed lines, as you can see here:
<a href="https://imgur.com/a/RybbkLq" class="">https://imgur.com/a/RybbkLq</a></div>
<div class=""><br class="">
</div>
<div class="">I'm not sure if I'm missing something that I should be doing, or if this is a bug. If anyone needs to be able to reproduce this, let me know and I can try to Dropbox you my data and layout to allow you to run this code.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Steve<br class="">
</div>
<div class="">
<div class="">
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class=""><br class="">
</div>
<span class="">
<div class="">---<br class="">
</div>
Stephen Politzer-Ahles<br class="">
The Hong Kong Polytechnic University<br class="">
Department of Chinese and Bilingual Studies<br class="">
<a href="http://www.polyu.edu.hk/cbs/sjpolit/" target="_blank" class="">http://www.polyu.edu.hk/cbs/sjpolit/</a></span></div>
</div>
</div>
</div>
</div>
</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://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>