<div dir="ltr"><div>Ah yes, that took care of it -- I was using a 2016 release, when I downloaded the latest release the different line styles worked as intended. Thanks!<br clear="all"></div><div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><span><div>---<br></div>Stephen Politzer-Ahles<br>The Hong Kong Polytechnic University<br>Department of Chinese and Bilingual Studies<br><a href="http://www.polyu.edu.hk/cbs/sjpolit/" target="_blank">http://www.polyu.edu.hk/cbs/sjpolit/</a></span></div></div></div></div></div></div></div></div></div></div></div><br></div><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Message: 4<br>
Date: Fri, 20 Mar 2020 08:27:36 +0000<br>
From: "Schoffelen, J.M. (Jan Mathijs)" <<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank">jan.schoffelen@donders.ru.nl</a>><br>
To: FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>><br>
Subject: Re: [FieldTrip] Line styles not working in ft_multiplotER?<br>
Message-ID: <<a href="mailto:5465DDFF-32C6-499B-B927-A6280072B252@donders.ru.nl" target="_blank">5465DDFF-32C6-499B-B927-A6280072B252@donders.ru.nl</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Steve and all,<br>
<br>
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?<br>
<br>
Best wishes,<br>
Jan-Mathijs<br>
<br>
<br>
On 20 Mar 2020, at 09:08, Stephen Politzer-Ahles <<a href="mailto:politzerahless@gmail.com" target="_blank">politzerahless@gmail.com</a><mailto:<a href="mailto:politzerahless@gmail.com" target="_blank">politzerahless@gmail.com</a>>> wrote:<br>
<br>
Hi all,<br>
<br>
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:<br>
<br>
figure;<br>
cfg = [];<br>
cfg.parameter = 'avg';<br>
cfg.layout = lay;<br>
cfg.showlabels= 'yes';<br>
cfg.linestyle = {'-' '--'};<br>
cfg.channel = {'EEG' '-M1' '-M2'};<br>
ft_multiplotER( cfg, MMNsonly.ka3, MMNsonly.pa3 );<br>
<br>
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" rel="noreferrer" target="_blank">https://imgur.com/a/RybbkLq</a><br>
<br>
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.<br>
<br>
Thanks,<br>
Steve<br>
<br>
---<br>
Stephen Politzer-Ahles<br>
The Hong Kong Polytechnic University<br>
Department of Chinese and Bilingual Studies<br>
<a href="http://www.polyu.edu.hk/cbs/sjpolit/" rel="noreferrer" target="_blank">http://www.polyu.edu.hk/cbs/sjpolit/</a><br>
_______________________________________________<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>
<br></blockquote><div> </div></div></div>