[Eeglablist] Same colors on ERP plots

mirek 3mirek at gmail.com
Sat Aug 4 03:16:18 PDT 2012


Sorry, the correct code is below:


axhandle = gca;
lines = findobj(axhandle,'type','line');
plots = 
size(STUDY.design(STUDY.currentdesign,1).variable(1,2).value,2);   %no 
of plots
colors = hsv(length(lines)/plots);

for f = 0:plots-1  %plots
     for k = 1 + f*length(lines)/plots : (1+f)*length(lines)/plots
         set(lines(k),'color',colors(k-f*length(lines)/plots,:));
     end
end



More information about the eeglablist mailing list