set datafile separator ';'

# Set first two line styles to blue (#0060ad) and red (#dd181f)
set style line 1 \
    linecolor rgb '#0060ad' \
    linetype 1 linewidth 2 \
    pointtype 7 pointsize 1.5
set style line 2 \
    linecolor rgb '#dd181f' \
    linetype 1 linewidth 2 \
    dashtype 3 \
    pointtype 5 pointsize 1.5
set style line 3 \
    linecolor rgb '#0060ad' \
    linetype 1 linewidth 2 \
    pointtype 7 pointsize 1.5
set style line 4 \
    linecolor rgb '#00ff00' \
    linetype 1 linewidth 2 \
    pointtype 7 pointsize 1.5

set ylabel "proba"
set xlabel "n"

     
f1(x) = m1*x + b1
f2(x) = m2*x + b2
f3(x) = m3*x + b3
fit f1(x) 'complete-crossover-proba-modeling.csv' using 1:2 via m1,b1
fit f2(x) 'complete-crossover-proba-modeling.csv' using 1:3 via m2,b2
fit f3(x) 'complete-crossover-proba-modeling.csv' using 1:4 via m3,b3

plot 'complete-crossover-proba-modeling.csv' using 1:2 with lines linestyle 1, \
     ''                   using 1:3 with lines linestyle 2, \
     ''                   using 1:4 with lines linestyle 3, \
     ''                   using 1:5 with lines linestyle 4, \
     f1(x) title sprintf("y=%.2fx+%.2f", m1, b1), \
     f2(x) title sprintf("y=%.2fx+%.2f", m2, b2), \
     f3(x) title sprintf("y=%.2fx+%.2f", m3, b3)