<div>That's odd. The only possibility that immediately comes to mind then is that the color properties of these two lineseries objects are linked (via linkprop()). </div><div><br></div><div>Try removing any color linkage via the following code:</div>
<div><br></div><div>hlink = getappdata(gca,'graphics_linkprop')</div><div>removeprop(hlink,'color')</div><div><br></div><div>Let me know if that resolves it. Also, which EEGLAB function are you using to produce the graphic?</div>
<div><br></div><div>Tim</div><br><div class="gmail_quote">On Sat, Aug 4, 2012 at 1:23 AM, mirek <span dir="ltr"><<a href="mailto:3mirek@gmail.com" target="_blank">3mirek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Thanks for the suggestions. The strange thing is that when I use Tim's script, the lines do change their colors into another. But each two lines which were the same, are now in another color, but still the same (and still indistinguishable).<br>
<a href="http://zpf.psychologia.uj.edu.pl/hidden/samecolors2.png" target="_blank">http://zpf.psychologia.uj.edu.<u></u>pl/hidden/samecolors2.png</a><br>
As you can see, the ColorOrder property shows different colors then are used by ERPs plots.<br>
<br>
Still I can pick them and change the color manually to identify them, but unfortunately, when exploring more data it becomes extremely inconvenient.<br>
I'm not sure if it some version specific problem? I use Matlab R2011b glnx64 / EEGLAB 11.0.3.1b / Ubuntu 12.04 LTS / KDE<br>
<br>
Best,<br>
<br>
-- <br>
Mirek Wyczesany<br>
Jagiellonian University<br>
Psychophysiology Lab<br>
Kraków, PL<div class="im"><br>
<br>
<br>
<br>
<br>
On 03.08.2012 22:09, Tim Mullen wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
If the ERP waveforms are the only line objects in that axis the automated solution is simple:<br>
<br>
% ---------------------------<br>
% 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.<br>
<br>
% 1) get the handle to current axis containing lines:<br>
axhandle = gca;<br>
<br>
% 2) get the handles of the lines<br>
lines = findobj(axhandle,'type','line'<u></u>);<br>
<br>
% 3) define a color scheme. Also check out distinguishable_colors() from Matlab FEX<br>
colors = hsv(length(lines));<br>
<br>
% 4) recolor the lines<br>
for k=1:length(lines)<br>
set(lines(k),'color',colors(k,<u></u>:));<br>
end<br>
% ---------------------------<br>
<br>
- Tim<br>
<br></div><div class="im">
On Fri, Aug 3, 2012 at 12:27 PM, Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a> <mailto:<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>>> wrote:<br>
<br>
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></div>
2012/8/3 mirek <<a href="mailto:3mirek@gmail.com" target="_blank">3mirek@gmail.com</a> <mailto:<a href="mailto:3mirek@gmail.com" target="_blank">3mirek@gmail.com</a>>>:<div class="im"><br>
> Hello, everybody!<br>
><br>
> I have a study design based on 5x2 factors. Unfortunately, when<br>
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.<u></u>pl/hidden/samecolors.png</a><br>
> Any suggestion how to change it?<br>
><br>
> Best,<br>
><br>
> Mirek Wyczesany<br>
> ______________________________<u></u>_________________<br>
> Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/<u></u>eeglabmail.html</a><br>
> To unsubscribe, send an empty email to<br>
<a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.<u></u>ucsd.edu</a><br></div>
<mailto:<a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-<u></u>unsubscribe@sccn.ucsd.edu</a>><div class="im"><br>
> For digest mode, send an email with the subject "set digest<br>
mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.<u></u>edu</a><br></div>
<mailto:<a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@<u></u>sccn.ucsd.edu</a>><div class="im"><br>
<br>
<br>
<br>
--<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>
______________________________<u></u>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/<u></u>eeglabmail.html</a><br>
To unsubscribe, send an empty email to<br>
<a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.<u></u>ucsd.edu</a><br></div>
<mailto:<a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-<u></u>unsubscribe@sccn.ucsd.edu</a>><div class="im"><br>
For digest mode, send an email with the subject "set digest mime"<br>
to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.<u></u>edu</a><br></div>
<mailto:<a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@<u></u>sccn.ucsd.edu</a>><br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
--------- αντίληψη -----------<br>
</font></span></blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>--------- αντίληψη -----------<br>