clearvars
close all

load('array_simb1.mat');
% load('array_exp.mat');



x_lim = [-1 1];% pour x/L

y_lim = [-0.2 0.95];


n_pas=8;%controle du nombre de point sur les courbes



figure('rend','painters','pos',[10 10 1500 600])
box on
hold on


    plot(array_sim(27).x_L_z10(1:end),array_sim(27).u_z10(1:end),'k-','MarkerFaceColor','k','linewidth', 3)
    plot(array_sim(13).x_L_z10(1:n_pas:end),array_sim(13).u_z10(1:n_pas:end),'kp','MarkerFaceColor','k','MarkerSize', 6)
    plot(array_sim(11).x_L_z10(1:n_pas:end),array_sim(11).u_z10(1:n_pas:end),'k*','MarkerFaceColor','w','MarkerSize', 6)
    plot(array_sim(9).x_L_z10(1:n_pas:end),array_sim(9).u_z10(1:n_pas:end),'kd','MarkerFaceColor','k','MarkerSize', 6)
    plot(array_sim(7).x_L_z10(1:n_pas:end),array_sim(7).u_z10(1:n_pas:end),'k+','MarkerFaceColor','w','MarkerSize', 10)
    plot(array_sim(5).x_L_z10(1:n_pas:end),array_sim(5).u_z10(1:n_pas:end),'ko','MarkerFaceColor','w','MarkerSize', 6)
    plot(array_sim(3).x_L_z10(1:n_pas:end),array_sim(3).u_z10(1:n_pas:end),'kx','MarkerFaceColor','w','MarkerSize', 10)
    plot(array_sim(1).x_L_z10(1:4:end),array_sim(1).u_z10(1:4:end),'k^','MarkerFaceColor','k','MarkerSize', 6)
    
    plot([0 0],[-0.3 1],'k--')


    hy = ylabel('$\overline{u}/U_{flow}$','FontSize',30);
%     hx = xlabel('$x/H_{1}$','FontSize',30);
    hx = xlabel('$x/L_u$','FontSize',30);

    set(hx,'interpreter','Latex','FontSize',15)
    set(hy,'interpreter','Latex','FontSize',15)
    xlim([x_lim(1) x_lim(2)])
    ylim([y_lim(1) y_lim(2)])
    set(gca, 'FontSize', 30);
    set(gca,'TickLabelInterpreter', 'Latex');
 
leg=legend(['$\lambda/H_{1}=\infty$'],...
['$\lambda/H_{1}=19.2$'],...
['$\lambda/H_{1}=12.9$'],...
['$\lambda/H_{1}=9.2$'],...
['$\lambda/H_{1}=8.5$'],...
['$\lambda/H_{1}=6.9$'],...
['$\lambda/H_{1}=5.8$'],...
['$\lambda/H_{1}=4.6$']);
set(leg,'Interpreter','Latex','Fontsize',20);



pos_letter_x = -0.7;
pos_letter_y = 0.8;

   letter = 'upstream';
   text(pos_letter_x,pos_letter_y,letter,'Interpreter','latex','FontSize',30)

 
pos_letter_x1 = 0.2;
pos_letter_y1 = 0.8;

   letter1 = 'downstream';
   text(pos_letter_x1,pos_letter_y1,letter1,'Interpreter','latex','FontSize',30)
   