<div dir="ltr"><div>Dear Jac,</div><div><br></div><div>It does sound like a bug, but it's hard to verify without some data to reproduce it. I've not had any issues with plotting different lines/colors myself in the past, but it's been a while.</div><div><br></div><div>You can report it as a bug at: <a href="http://www.fieldtriptoolbox.org/bugzilla/">http://www.fieldtriptoolbox.org/bugzilla/</a></div><div><br></div><div>Make sure to make it reproducible by including a TINY piece of data enough to reproduce the problem. You can use ft_selectdata e.g. to only select some timepoints/channels. In your case, you should also be able to reproduce the bug using the same datastructure 6 times as input. <br></div><div><br></div><div>Cheers,</div><div>Stephen<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op wo 21 aug. 2019 om 14:25 schreef Jac Billington <<a href="mailto:J.Billington@leeds.ac.uk">J.Billington@leeds.ac.uk</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Dear users,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Apologies if I'm misusing the cfg parameters but I'm running into issues with plotting and can't find any examples/ thinking this may be a bug.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I'm using both single and multiplot with the code below. My linestyle is always the 6th style with no error. From going through the multiplot code the line:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span> ft_plot_vector(xval, yval, 'width', chanWidth(m), 'height', chanHeight(m), 'hpos', chanX(m), 'vpos', chanY(m), 'hlim', [xmin xmax], 'vlim', [ymin ymax], 'color', graphcolor, 'style', cfg.linestyle{i}, 'linewidth', cfg.linewidth, 'axis', cfg.axes, 'highlight',
mask, 'highlightstyle', cfg.maskstyle);<br>
</span><span></span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
... is only called when i=6, i.e. the last data set. So the output makes sense, but I'm wondering how to change the lines of my plot to be two distinct styles. I cannot seem to adapt these .Children properties in matlab at a later point either.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Many thanks in advance. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Best, Jac</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span> cfg=[]<br>
</span>
<div> cfg.layout = 'biosemi64.lay';<br>
</div>
<div> cfg.center = 'no'<br>
</div>
<div> layout = ft_prepare_layout(cfg);</div>
<div> cfg = [];<br>
</div>
<div> cfg.parameter = 'avg';<br>
</div>
<div> cfg.channel = 'all';<br>
</div>
<div> cfg.baseline = 'no' ;<br>
</div>
<div> cfg.trials = 'all' ;<br>
</div>
<div> cfg.axes = 'yes';<br>
</div>
<div> cfg.box = 'no';<br>
</div>
<div> cfg.showlabels = 'no' ;<br>
</div>
<div> cfg.showoutline = 'no';<br>
</div>
<div> cfg.showscale = 'yes';<br>
</div>
<div> cfg.showcomment = 'yes' ;<br>
</div>
<div> cfg.interactive = 'yes' ;<br>
</div>
<div> cfg.graphcolor = 'rgbrgb';<br>
</div>
<div> cfg.layout = layout;<br>
</div>
<div> cfg.linestyle={'-','--','-','--','-',':'};<br>
</div>
<div> ft_multiplotER(cfg, erp1{3}, erp1{4}, erp2{3}, erp2{4},erp3{3}, erp3{4}) <br>
</div>
<span></span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="gmail-m_6184584349296015102Signature">
<div id="gmail-m_6184584349296015102divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="gmail-m_6184584349296015102BodyFragment"><font size="2">
<div class="gmail-m_6184584349296015102PlainText">
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><i><span style="color:rgb(127,127,127)"></span></i></p>
<i>
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><i><span style="color:rgb(127,127,127)"></span></i></p>
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><i><span style="color:rgb(64,64,64)"></span></i></p>
</i><span id="gmail-m_6184584349296015102ms-rterangepaste-start"></span>
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><i><span style="color:rgb(64,64,64)">Dr Jac Billington</span></i></p>
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><i><span style="color:rgb(64,64,64)">Associate Professor in Perceptual Neuroscience</span></i><br>
</p>
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><i><span style="color:rgb(64,64,64)">School of Psychology, Rm G.06A</span></i></p>
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><i><span style="color:rgb(64,64,64)">University of Leeds</span></i></p>
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><i><span style="color:rgb(64,64,64)">Leeds, LS2 9JT</span></i></p>
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><i><span style="color:rgb(64,64,64)">Tel: +44(0)113 343 6686</span></i></p>
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><i><span style="color:rgb(127,127,127)"> </span></i></p>
<p class="MsoNormal" style="margin-top:0px;margin-bottom:0px"><br>
</p>
</div>
</font></div>
</div>
</div>
</div>
_______________________________________________<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>
</blockquote></div>