[FieldTrip] Line styles not working in ft_multiplotER?

Stephen Politzer-Ahles politzerahless at gmail.com
Fri Mar 20 09:08:33 CET 2020


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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200320/959950fc/attachment.htm>


More information about the fieldtrip mailing list