<div dir="ltr">Thank you very much, Jan-Mathijs! <div><br></div><div>You were right about issue one -- and the { } fixed it - ha!</div><div>And thanks for the update about the second item -- perhaps I can put the two figures together using illustrator in the meantime. I'll keep my eye out for an update in the future!</div><div><br></div><div>C</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aY2hyaXN0aW5hdmJAZ21haWwuY29t&type=zerocontent&guid=f8ddf5ee-229a-4313-99a0-11a03becf602"><font color="#ffffff" size="1">ᐧ</font></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 5, 2021 at 12:59 PM Christina Vanden Bosch der Nederlanden <<a href="mailto:christinavb@gmail.com">christinavb@gmail.com</a>> wrote:<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">Hello!<div><br></div><div>I have been plotting my coherence data using Matlab's built-in plot functions, but I'd like to take advantage of fieldtrip's cfg.maskparameters for graphing significant regions of coherence in my data. I want to plot the average coherence across subjects and then make the thickness of the line represent significant regions. I'm trying to "trick" fieldtrip into thinking that my datatype is freq, but it won't let me plot just the average (and I read that maskparameter is omitted when trying to average over repetitions). So how do I trick fieldtrip into plotting my data as an average across participants, with std error bars AND the mask parameter for sig regions of coherence (x-axis: freq, y-axis: coherence).</div><div><br></div><div><font face="arial, sans-serif">data = </font></div><div><font face="arial, sans-serif">struct with fields:</font></div><div>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal">powspctrm: [33×790 double] %this is actually participants_freq<br> avg: [1×790 double] %avg across all participants for all freqs</p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"> stderror: [1×790 double] %stderror across all participants for all freqs<br> dimord: 'chan_freq'<br> freq: [1×790 double]<br> sigreg: [1×790 logical] %0's for nonsig 1's for sig<br> label: 'E25' %just put in a random chan label to trick ft into thinking this was a 'chan_freq' datatype resulting from ft_freqanalysis<br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, sans-serif"><br></font></p></div><div><font face="arial, sans-serif">cfg = [ ];<br>cfg.parameter = 'avg';<br>cfg.maskparameter = 'sigreg';<br>cfg.maskstyle = 'thickness'<br>cfg.title = 'All conditions, sig coherence';<br>ft_singleplotER(cfg, data)<br clear="all"></font><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Christina M. Vanden Bosch der Nederlanden</div><div>Postdoctoral Fellow</div><div>Brain and Mind Institute</div><div>Western University<br><a href="mailto:christinavb@gmail.com" target="_blank">christinavb@gmail.com</a></div><div><span style="font-size:12.8px">Website: </span><a href="https://sites.google.com/view/christinavbdn" style="font-size:12.8px" target="_blank">https://sites.google.com/view/christinavbdn</a><br></div></div></div></div></div></div></div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width: 0px; max-height: 0px; overflow: hidden;" src="https://mailfoogae.appspot.com/t?sender=aY2hyaXN0aW5hdmJAZ21haWwuY29t&type=zerocontent&guid=50ce631f-6362-463f-af7d-2eb80b778864"><font color="#ffffff" size="1">ᐧ</font></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Christina M. Vanden Bosch der Nederlanden</div><div>Postdoctoral Fellow</div><div>Brain and Mind Institute</div><div>Western University<br><a href="mailto:christinavb@gmail.com" target="_blank">christinavb@gmail.com</a></div><div><span style="font-size:12.8px">Website: </span><a href="https://sites.google.com/view/christinavbdn" style="font-size:12.8px" target="_blank">https://sites.google.com/view/christinavbdn</a><br></div></div></div></div></div></div></div>