<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="FR">Hi everyone,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal">This is a very basic question but I’m at a loss as to how to solve it. I hope the explanation below is clear enough.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I want to plot ERPs from some different conditions using ft_singleplotER, with the different conditions overlaid. The different conditions are all subsets of one big dataset, where (simplified) I have a condition of word frequency of the
 stims presented in the experiment (high vs low). I created subsets of data by high vs low, using ft_timelockgrandaverage over all participants. From these big grand averages, I have then pulled out smaller subsets relating to channel groups (frontal, central,
 posterior).<o:p></o:p></p>
<p class="MsoNormal">For plotting, I want to plot something like:<o:p></o:p></p>
<p class="MsoNormal">Ft_singleplotER(cfg, highFreqFrontal, lowFreqFrontal, highFreqCentral, lowFreqCentral, highFreqPosterior, lowFreqPosterior)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However, with this I am getting an error about ylim:<o:p></o:p></p>
<p class="MsoNormal">Error using ylim (line 31)<o:p></o:p></p>
<p class="MsoNormal">Limits must be a 2-element vector of increasing numeric values.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Error in ft_singleplotER (line 460)<o:p></o:p></p>
<p class="MsoNormal">  ylim([ymin ymax]);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I then manually specify y limits (as anything reasonable considering the data), with all 6 sets being plotted, I get a blank plot.
<o:p></o:p></p>
<p class="MsoNormal">I don’t think it is something in the datasets, because I can do individual plots of pairs. These all work:<o:p></o:p></p>
<p class="MsoNormal">Ft_singleplotER(cfg, highFreqFrontal, lowFreqFrontal)<o:p></o:p></p>
<p class="MsoNormal">Ft_singleplotER(cfg, highFreqCentral, lowFreqCentral)<o:p></o:p></p>
<p class="MsoNormal">Ft_singleplotER(cfg, highFreqPosterior, lowFreqPosterior)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But the minute I try to plot 3 of the sets, the plot becomes blank (if ylim is set), or crashes (if I don’t specify).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can anyone see what I am doing wrong? Or have I gone wrong earlier in the pipeline?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB">Amie<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB">------------------  
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB">Dr. Amie Fairs<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB">Post-doctorant<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB">Aix-Marseille Université<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB">Laboratoire Parole et Langage (LPL) | CNRS UMR 7309 | 5 Avenue Pasteur | 13100 Aix-en-Provence<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Email : </span><span lang="FR" style="mso-fareast-language:EN-GB"><a href="mailto:amie.fairs@univ-amu.fr"><span lang="EN-GB">amie.fairs@univ-amu.fr</span></a></span><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">While I may send this email outside of typical working hours, I have no expectation to receive an email outside of your typical hours.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>