Source
25 setfontsize
5 setxyrapport
20 setxunit
7.5 setborder
90 setangle_repere
-2.5 30 setxrange
-5 250 setyrange
/quadrillagegray 0.5 def
2 setquadrillagexstep
10 setquadrillageystep
quadrillage
1 20 settkstep
.5 .5 setsubtkstep
5 50 setmkstep
ticks
marks
traceaxes
axesarrow
/f {setxvar
#rpn#   8*x
} def
/g {setxvar
#rpn#   40+4*x
} def
/h {setxvar
#rpn#   120
} def
gsave
   bleu
   1 setlinewidth
   continu
 0 xmax  {f} Courbe
grestore
gsave
   rouge
   1 setlinewidth
   continu
 0 xmax  {g} Courbe
grestore
gsave
   vert
   1 setlinewidth
   continu
 0 xmax  {h} Courbe
grestore

/A {10 80} def
/B {20 120} def

A dashpoint
B dashpoint

#latex#${A\left(10;80\right)}$
A [2 2]  drtexlabel

#latex#${B\left(10;80\right)}$
B [2 2]  drtexlabel



#tex# Tarif $A$ : $y=8x$
22 183 [2 2] {60} crtexlabel

#tex# Tarif $B$ : $y=4x+40$
22 133 [2 2] {40} crtexlabel

#tex# Tarif $C$ : $y=120$
2 120 [2 2] urtexlabel


<latex>
\begin{center}Nombre de \\ matchs vus \end{center}
</latex>
boxit
30 1.5 [2 2] ultexlabel

<latex>
\begin{center}Prix total \\ (en euros) \end{center}
</latex>
boxit
0.5 250 [2 2] drtexlabel