[FieldTrip] Line styles not working in ft_multiplotER?

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Fri Mar 20 09:27:36 CET 2020


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/20200320/a1662b25/attachment.htm>


More information about the fieldtrip mailing list