<div>If the ERP waveforms are the only line objects in that axis the automated solution is simple:</div><div><br></div><div>% ---------------------------</div><div>% First make sure the axis containing lines has focus by e.g. clicking on it<br>


% Also check the 'tag' property of the axis -- if it has a unique tag you can use findobj() to grab its handle automatically.</div><div><br></div><div>% 1) get the handle to current axis containing lines:</div><div>


axhandle = gca;   </div><div><br></div><div>% 2) get the handles of the lines</div><div>lines = findobj(axhandle,'type','line');  </div><div><br></div><div>% 3) define a color scheme. Also check out distinguishable_colors() from Matlab FEX</div>


<div>colors = hsv(length(lines));  </div><div><br></div><div>% 4) recolor the lines</div><div>for k=1:length(lines)</div><div>     set(lines(k),'color',colors(k,:));</div><div>end</div><div>% ---------------------------</div>


<div><br></div><div>- Tim</div><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 12:27 PM, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Mirek,<br>
<br>
It's just a symptomatic treatment, but let me tell you this anyway.<br>
Better than nothing.<br>
You can double click each line to open a figure editor, and you can<br>
assign colors you like. It would also tell you which line is data1,<br>
data2,... if you know your data plot order, you should be able to<br>
identify which one is which.<br>
<br>
Makoto<br>
<br>
2012/8/3 mirek <<a href="mailto:3mirek@gmail.com" target="_blank">3mirek@gmail.com</a>>:<br>
<div><div>> Hello, everybody!<br>
><br>
> I have a study design based on 5x2 factors. Unfortunately, when plotting<br>
> the results, the colors of ERP waveform are duplicated. So each two<br>
> consecutive lines are indistinguishable.<br>
> The example is here:<br>
> <a href="http://zpf.psychologia.uj.edu.pl/hidden/samecolors.png" target="_blank">http://zpf.psychologia.uj.edu.pl/hidden/samecolors.png</a><br>
> Any suggestion how to change it?<br>
><br>
> Best,<br>
><br>
> Mirek Wyczesany<br>
> _______________________________________________<br>
> Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
> To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
> For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br>
<br>
<br>
<br>
</div></div><span><font color="#888888">--<br>
Makoto Miyakoshi<br>
JSPS Postdoctral Fellow for Research Abroad<br>
Swartz Center for Computational Neuroscience<br>
Institute for Neural Computation, University of California San Diego<br>
</font></span><div><div>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>---------  αντίληψη -----------<br>