function plotC_Nint(I_lvl,I_lvl_max)

% ------------------------------------------------------------------------------
% I_lvl:        average integration at level 1 to N
% I_lvl_max:    maximal integration at level 1 to N
% ------------------------------------------------------------------------------
% Plot the complexity as a fucnction of average (hierarchical) integration
% Olaf Sporns, Indiana University, 2003
% ------------------------------------------------------------------------------
N = length(I_lvl);

plot(I_lvl_max,'b-');
hold on
plot(I_lvl,'r-');
plot(I_lvl,'rx');
for l=1:N
    li = line([l l],[I_lvl(l) I_lvl_max(l)]);
    set(li,'Color',[0.4 0.1 0.8]);
end;
li_C = line([N-1 N-1],[I_lvl(N-1) I_lvl_max(N-1)]);
set(li_C,'LineWidth',3,'Color',[0 1 0]);
length_li_C = I_lvl_max(N-1) - I_lvl(N-1);
disp(['graphical correlate of description complexity = ',num2str(length_li_C)]);

axis([1 N 0 1.05*I_lvl(N)]);
hold off
done = 1;
