[FieldTrip] Line styles not working in ft_multiplotER?

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


Dear Steve,

Thanks for reporting this. Given the current global circumstances I started ’spring cleaning’ the open issues on github, which slipped off the radar before, due to more urgent matters.

As it is, I encountered an issue submitted about a year ago, which reported the same thing. The suggested fix has never come through, but the person reporting the original issue mentioned that it seemed to work on their end these days. Hence I closed the issue. I reopened it again (issue #928 on https://github.com/fieldtrip/fieldtrip/issues/928<http://github.com/fieldtrip/fieldtrip>). Feel free to sign up there and chime in with additional insights, suggestions for a fix etc.

Best wishes,

Jan-Mathijs




J.M.Schoffelen, MD PhD
Associate PI, VIDI-fellow - PI, language in interaction
Telephone: +31-24-3614793
Physical location: room 00.028
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands




On 20 Mar 2020, at 09:08, Stephen Politzer-Ahles <politzerahless at gmail.com<mailto:politzerahless at gmail.com>> wrote:

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200320/f2c15d00/attachment.htm>


More information about the fieldtrip mailing list