Source
18 setfontsize
-5 5 setxrange
-2 2 setyrange

/f {
   Sin
} def

50 setxunit
[1 1 .5 .5 .1 .1] {orange} Quadrillage
.7 setlinewidth
tracerepere
marks
gsave
   bleu
   1.75 setlinewidth
   {f} courbe
grestore

setTimesItalic
   (O) O drtext

<tex>
$$
   y = \sin x
$$
</tex>

/dx_boxit 3 def
/dy_boxit 3 def
/fillstyle {jaune fill} def
/linearc .05 def
boxit
-2 1 [2 dup] cctexlabel