[FieldTrip] Line styles not working in ft_multiplotER?

Stephen Politzer-Ahles politzerahless at gmail.com
Sun Mar 22 20:32:05 CET 2020


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!

---
Stephen Politzer-Ahles
The Hong Kong Polytechnic University
Department of Chinese and Bilingual Studies
http://www.polyu.edu.hk/cbs/sjpolit/



> Message: 4
> Date: Fri, 20 Mar 2020 08:27:36 +0000
> From: "Schoffelen, J.M. (Jan Mathijs)" <jan.schoffelen at donders.ru.nl>
> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> Subject: Re: [FieldTrip] Line styles not working in ft_multiplotER?
> Message-ID: <5465DDFF-32C6-499B-B927-A6280072B252 at donders.ru.nl>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Steve and all,
>
> 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?
>
> Best wishes,
> Jan-Mathijs
>
>
> On 20 Mar 2020, at 09:08, Stephen Politzer-Ahles <politzerahless at gmail.com
> <mailto:politzerahless at gmail.com>> wrote:
>
> Hi all,
>
> 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:
>
> figure;
> cfg = [];
> cfg.parameter = 'avg';
> cfg.layout = lay;
> cfg.showlabels= 'yes';
> cfg.linestyle = {'-' '--'};
> cfg.channel = {'EEG' '-M1' '-M2'};
> ft_multiplotER( cfg, MMNsonly.ka3, MMNsonly.pa3 );
>
> 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:
> https://imgur.com/a/RybbkLq
>
> 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.
>
> Thanks,
> Steve
>
> ---
> Stephen Politzer-Ahles
> The Hong Kong Polytechnic University
> Department of Chinese and Bilingual Studies
> http://www.polyu.edu.hk/cbs/sjpolit/
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200323/269f8b47/attachment.htm>


More information about the fieldtrip mailing list