%@AUTEUR:Guillaume Connan
prologues:=2;
input courbes;
input geo;
color vert_e, turquoise, orange, vert_fonce, rose, vert_mer, bleu_ciel, or, rouge_v,bleu_m,bleu,bleu_f;
vert_e:=(0,0.790002,0.340007);
turquoise:=(0.250999,0.878399,0.815699);
orange:=(0.589999,0.269997,0.080004);
vert_fonce:=(0,1.4*0.392193,0);
rose:=(1.0, 0.752907, 0.796106);
bleu_ciel:=(1.2*0.529405,1.2*0.807794,1);%.2*0.921598);
or:=(1,0.843104,0);
rouge_v:=(0.829997,0.099994,0.119999);
bleu_m:=(0.7*0.529405,0.7*0.807794,0.7);%*0.921598);
bleu_f:=(0.211762,0.3231176,0.3686392);
bleu:=(0.529405,0.807794,1);
beginfig(1);
% TVI multiple
repere(11cm,4cm,1cm,1cm,1cm,0.4cm);
rtrace.axes(0.5pt);
draw rpoint(2,0.5) withpen pencircle scaled 5pt;
draw rpoint(3,2) withpen pencircle scaled 5pt;
draw rpoint(6,2) withpen pencircle scaled 5pt;
draw rpoint(8,2) withpen pencircle scaled 5pt;
draw rpoint(9,4) withpen pencircle scaled 5pt;
draw rpoint(2,0.5)..rpoint(3,2)..rpoint(4,3.7)..rpoint(6,2)..rpoint(7,1.5)..rpoint(8,2)..rpoint(9,4)withpen pencircle scaled 1.5pt withcolor bleu_m;
draw rpoint(0,0.5)--rpoint(2,0.5)--rpoint(2,0)dashed evenly;
draw rpoint(0,4)--rpoint(9,4)--rpoint(9,0)dashed evenly;
draw rpoint(3,2)--rpoint(3,0) dashed evenly withcolor bleu;
draw rpoint(6,2)--rpoint(6,0) dashed evenly withcolor bleu;
draw rpoint(8,2)--rpoint(8,0) dashed evenly withcolor bleu;
draw rpoint(0,2)--rpoint(10,2) withcolor bleu;
label.lft(btex $f(b)$ etex,rpoint(0,4));
label.lft(btex $f(a)$ etex,rpoint(0,0.5));
label.bot(btex $a$ etex,rpoint(2,0));
label.bot(btex $b$ etex,rpoint(9,0));
label.llft(btex $0$ etex, rpoint(0,0));
label.lft(btex $k$ etex, rpoint(0,2));
label.bot(btex $c_1$ etex, rpoint(3,0));
label.bot(btex $c_2$ etex, rpoint(6,0));
label.bot(btex $c_3$ etex, rpoint(8,0));
decoupe.repere;
etiquette.axes;
endfig;
end